feat: upgrade alpine and support chromium path (#2353)

Upgrade alpine to 3.22
Support chromium executable path
This commit is contained in:
Ted Liang
2026-01-03 11:31:56 +11:00
committed by GitHub
parent ef407cb0b4
commit 27eb2d65d4
3 changed files with 7 additions and 3 deletions
@@ -33,7 +33,9 @@ export const getAuditLogsPdf = async ({ documentId, language }: GetAuditLogsPdfO
// !: Previously we would have to keep the playwright version in sync with the browserless version to avoid errors.
browser = await chromium.connectOverCDP(browserlessUrl);
} else {
browser = await chromium.launch();
browser = await chromium.launch({
executablePath: env('PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH') || undefined,
});
}
if (!browser) {
@@ -33,7 +33,9 @@ export const getCertificatePdf = async ({ documentId, language }: GetCertificate
// !: Previously we would have to keep the playwright version in sync with the browserless version to avoid errors.
browser = await chromium.connectOverCDP(browserlessUrl);
} else {
browser = await chromium.launch();
browser = await chromium.launch({
executablePath: env('PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH') || undefined,
});
}
if (!browser) {