We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
QUARTO_CHROMIUM
1 parent f0403e1 commit 513f371Copy full SHA for 513f371
src/core/puppeteer.ts
@@ -201,6 +201,12 @@ export async function withHeadlessBrowser<T>(
201
202
async function findChrome(): Promise<string | undefined> {
203
let path;
204
+ // First check env var and use this path if specified
205
+ const envPath = Deno.env.get("QUARTO_CHROMIUM");
206
+ if (envPath && safeExistsSync(envPath)) {
207
+ return envPath;
208
+ }
209
+ // Otherwise, try to find the path based on OS.
210
if (Deno.build.os === "darwin") {
211
const programs = [
212
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
0 commit comments