Spaces:
Running
Running
Update index.js
Browse files
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': '*/*',
|