Skip to content

Commit 4223fce

Browse files
committed
Remove browserparams
1 parent 7956643 commit 4223fce

File tree

1 file changed

+1
-17
lines changed
  • xp-archive/server/src/routing

1 file changed

+1
-17
lines changed

xp-archive/server/src/routing/site.ts

+1-17
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,8 @@ export const setupSite = async (router: Router) => {
2828
};
2929

3030
const setupApiRoutes = async (router: Router) => {
31-
// const browser = await puppeteer.launch({
32-
33-
// args: [],
34-
// });
35-
3631
const browser = await puppeteer.launch({
37-
// headless: 'new',
38-
args: [
39-
// Allow any CDN connections
40-
'--disable-web-security',
41-
'--allow-running-insecure-content',
42-
// Increase memory allocation if needed
43-
'--disable-dev-shm-usage',
44-
// Old args
45-
'--no-sandbox',
46-
'--disable-setuid-sandbox',
47-
'--user-data-dir=/tmp/.chromium',
48-
],
32+
args: ['--no-sandbox', '--disable-setuid-sandbox', '--user-data-dir=/tmp/.chromium'],
4933
});
5034

5135
const contentService = new ContentService();

0 commit comments

Comments
 (0)