temp: rewrite headless config

This commit is contained in:
karishmas6
2024-11-03 02:59:30 +05:30
parent 006b249774
commit d2115b1104
6 changed files with 42 additions and 68 deletions

View File

@@ -40,13 +40,7 @@ async function createWorkflowAndStoreMetadata(id: string, userId: string) {
};
}
const browserId = createRemoteBrowserForRun({
browser: chromium,
launchOptions: {
headless: true,
proxy: proxyOptions.server ? proxyOptions : undefined,
}
}, userId);
const browserId = createRemoteBrowserForRun( userId);
const runId = uuid();
const run = await Run.create({