We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fa5be1 commit a87a1a0Copy full SHA for a87a1a0
xp-archive/server/src/routing/site.ts
@@ -28,8 +28,20 @@ export const setupSite = async (router: Router) => {
28
};
29
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
36
const browser = await puppeteer.launch({
- 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
+ ],
45
});
46
47
const contentService = new ContentService();
0 commit comments