From 15e9f8a4c7c8ed3d911e8bd0561ed1b1f608f524 Mon Sep 17 00:00:00 2001 From: Jakub Mikulas Date: Sat, 26 Oct 2024 10:17:17 +0200 Subject: [PATCH] fix: add disable-gpu flag Possible fix for: https://github.com/puppeteer/puppeteer/issues/12637 --- src/mermaid.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mermaid.ts b/src/mermaid.ts index 2cfbc00..7ff714c 100644 --- a/src/mermaid.ts +++ b/src/mermaid.ts @@ -51,7 +51,7 @@ export async function renderMermaidToFile( executablePath: process.env.CHROME_BIN ? process.env.CHROME_BIN : undefined, - args: ['--no-sandbox'], // I couldn't figure out how to run this in a container without this + args: ['--no-sandbox', '--disable-gpu'], // I couldn't figure out how to run this in a container without this }, } );