Browse Source

disable sandbox

Futa Arai 8 months ago
parent
commit
20079d8407
1 changed files with 3 additions and 0 deletions
  1. 3 0
      apps/pdf-converter/src/service/pdf-convert.ts

+ 3 - 0
apps/pdf-converter/src/service/pdf-convert.ts

@@ -285,6 +285,9 @@ class PdfConvertService implements OnInit {
       concurrency: Cluster.CONCURRENCY_PAGE,
       maxConcurrency: this.maxConcurrency,
       workerCreationDelay: 10000,
+      puppeteerOptions: {
+        args: ['--no-sandbox'],
+      },
     });
 
     await this.puppeteerCluster.task(async ({ page, data: htmlString }) => {