File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
xp-archive/server/src/routing Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,20 @@ export const setupSite = async (router: Router) => {
28
28
} ;
29
29
30
30
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
+
31
36
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
+ ] ,
33
45
} ) ;
34
46
35
47
const contentService = new ContentService ( ) ;
You can’t perform that action at this time.
0 commit comments