Allow to specify a custom playwright browser path

This commit is contained in:
Jan van Brügge
2024-10-07 15:05:48 +01:00
parent eaf4524598
commit fb4aa42eef
+3
View File
@@ -43,6 +43,9 @@ export default async function archiveHandler(link: LinksAndCollectionAndOwner) {
password: process.env.PROXY_PASSWORD,
};
}
if (process.env.PLAYWRIGHT_LAUNCH_OPTIONS_EXECUTABLE_PATH) {
browserOptions.executablePath = process.env.PLAYWRIGHT_LAUNCH_OPTIONS_EXECUTABLE_PATH;
}
const browser = await chromium.launch(browserOptions);
const context = await browser.newContext({