feat: use proxy options for launchOPtions
This commit is contained in:
@@ -48,7 +48,10 @@ async function runWorkflow(id: string, userId: string) {
|
|||||||
try {
|
try {
|
||||||
const browserId = createRemoteBrowserForRun({
|
const browserId = createRemoteBrowserForRun({
|
||||||
browser: chromium,
|
browser: chromium,
|
||||||
launchOptions: { headless: true }
|
launchOptions: {
|
||||||
|
headless: true,
|
||||||
|
proxy: proxyOptions.server ? proxyOptions : undefined,
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const run = await Run.create({
|
const run = await Run.create({
|
||||||
|
|||||||
Reference in New Issue
Block a user