Skip to content

Commit a87a1a0

Browse files
committed
Args for cdn asset retreival
1 parent 7fa5be1 commit a87a1a0

File tree

1 file changed

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

1 file changed

+13
-1
lines changed

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

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

3030
const setupApiRoutes = async (router: Router) => {
31+
// const browser = await puppeteer.launch({
32+
33+
// args: ['--no-sandbox', '--disable-setuid-sandbox', '--user-data-dir=/tmp/.chromium'],
34+
// });
35+
3136
const browser = await puppeteer.launch({
32-
args: ['--no-sandbox', '--disable-setuid-sandbox', '--user-data-dir=/tmp/.chromium'],
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+
],
3345
});
3446

3547
const contentService = new ContentService();

0 commit comments

Comments
 (0)