fix(printer.service): add --disable-dev-shm-usage flag to chromium headless playwright browser
This commit is contained in:
parent
d79997d380
commit
e96b090904
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue