server: Use old headless mode in Puppeteer
New mode isn't working on Debian 12 server
This commit is contained in:
parent
b5a5eda5d2
commit
2d0778c16a
@ -4,7 +4,7 @@ import puppeteer from 'puppeteer';
|
|||||||
const PORT = process.env.PORT || 1234;
|
const PORT = process.env.PORT || 1234;
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
const puppet_browser = await puppeteer.launch({ headless: 'new' });
|
const puppet_browser = await puppeteer.launch();
|
||||||
|
|
||||||
app.get('/ipad.png', async (req, res) => {
|
app.get('/ipad.png', async (req, res) => {
|
||||||
const puppet_page = await puppet_browser.newPage();
|
const puppet_page = await puppet_browser.newPage();
|
||||||
|
Loading…
Reference in New Issue
Block a user