File tree 1 file changed +1
-17
lines changed
xp-archive/server/src/routing
1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -28,24 +28,8 @@ 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: [],
34
- // });
35
-
36
31
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' ] ,
49
33
} ) ;
50
34
51
35
const contentService = new ContentService ( ) ;
You can’t perform that action at this time.
0 commit comments