From e96b09090485fefc044dfc8e3daa9f52e123d946 Mon Sep 17 00:00:00 2001 From: Amruth Pillai Date: Tue, 8 Mar 2022 00:06:07 +0100 Subject: [PATCH] fix(printer.service): add --disable-dev-shm-usage flag to chromium headless playwright browser --- server/src/printer/printer.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/printer/printer.service.ts b/server/src/printer/printer.service.ts index 50609dc5..3842f13e 100644 --- a/server/src/printer/printer.service.ts +++ b/server/src/printer/printer.service.ts @@ -16,7 +16,9 @@ export class PrinterService implements OnModuleInit, OnModuleDestroy { constructor(private readonly schedulerRegistry: SchedulerRegistry, private readonly configService: ConfigService) {} async onModuleInit() { - this.browser = await chromium.launch(); + this.browser = await chromium.launch({ + args: ['--disable-dev-shm-usage'], + }); } async onModuleDestroy() {