NekonekoID commited on
Commit
374057f
·
verified ·
1 Parent(s): ac11386

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +5 -1
index.js CHANGED
@@ -210,7 +210,11 @@ app.all('/stablediff/illusion', async (req, res) => {
210
  })
211
 
212
  app.get('/fetch-page', async (req, res) => {
213
- const browser = await playwright.chromium.launch();
 
 
 
 
214
  const context = await browser.newContext({
215
  extraHTTPHeaders: {
216
  'accept': '*/*',
 
210
  })
211
 
212
  app.get('/fetch-page', async (req, res) => {
213
+ const browser = await playwright.chromium.launch({
214
+ headless: true,
215
+ executablePath: '/usr/bin/chromium',
216
+ args: ['--no-sandbox']
217
+ })
218
  const context = await browser.newContext({
219
  extraHTTPHeaders: {
220
  'accept': '*/*',