Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Nick:

Nicolas9f6ac3066078
diff --git a/apps/api/src/config.ts b/apps/api/src/config.ts
index bb9d6e198..05da7bc8b 100644
--- a/apps/api/src/config.ts
+++ b/apps/api/src/config.ts
@@ -222,6 +222,7 @@ const configSchema = z.object({
// Browser / Sandbox
SANDBOX_API_URL: z.string().default("http://localhost:3002"),
SANDBOX_POD_URL_TEMPLATE: z.string().optional(),
+ SANDBOX_HEADLESS_SERVICE: z.string().optional(),
CDP_PROXY_URL: z.string().default("ws://localhost:9222"),
NUQ_PREFETCH_WORKER_HEARTBEAT_URL: z.string().optional(),
diff --git a/apps/api/src/controllers/v2/browser.ts b/apps/api/src/controllers/v2/browser.ts
index aae8a68c5..5e642084c 100644
--- a/apps/api/src/controllers/v2/browser.ts
+++ b/apps/api/src/controllers/v2/browser.ts
@@ -102,6 +102,7 @@ function getSandboxClient() {
return createSandboxClient({
baseUrl: config.SANDBOX_API_URL!,
podUrlTemplate: config.SANDBOX_POD_URL_TEMPLATE,
+ headlessService: config.SANDBOX_HEADLESS_SERVICE,
});
}