use firefox in ci
Some checks failed
Build and Deploy / build (push) Failing after 1m25s

This commit is contained in:
Joakim Repomaa
2026-02-19 14:35:41 +02:00
parent d1ad7888ac
commit 2f30124d19
2 changed files with 13 additions and 8 deletions

View File

@@ -25,12 +25,14 @@ const PDF_CONFIG = {
// Browser launch options for different environments
const getLaunchOptions = (): LaunchOptions => {
const chromePath = process.env.PUPPETEER_EXECUTABLE_PATH;
const browserPath = process.env.PUPPETEER_EXECUTABLE_PATH;
const browser = process.env.PUPPETEER_BROWSER || 'chrome';
const options: LaunchOptions = {
headless: true,
browser: browser as 'chrome' | 'firefox',
};
if (chromePath) {
options.executablePath = chromePath;
if (browserPath) {
options.executablePath = browserPath;
}
return options;
};