feat: use proxy options for launchOPtions

This commit is contained in:
karishmas6
2024-10-10 03:29:25 +05:30
parent fbc67af7bc
commit a3d5cff89d

View File

@@ -48,7 +48,10 @@ async function runWorkflow(id: string, userId: string) {
try {
const browserId = createRemoteBrowserForRun({
browser: chromium,
launchOptions: { headless: true }
launchOptions: {
headless: true,
proxy: proxyOptions.server ? proxyOptions : undefined,
}
});
const run = await Run.create({