mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 09:01:17 +00:00
chore: simplify cloudflare compatibility (#191)
This commit is contained in:
parent
03e06e956d
commit
4201bd204b
10 changed files with 418 additions and 249 deletions
|
|
@ -25,7 +25,7 @@ export function App() {
|
|||
|
||||
try {
|
||||
// Connect via proxy endpoint (need full URL for SDK)
|
||||
const baseUrl = `${window.location.origin}/sandbox/${encodeURIComponent(sandboxName)}`;
|
||||
const baseUrl = `${window.location.origin}/sandbox/${encodeURIComponent(sandboxName)}/proxy`;
|
||||
log(`Connecting to sandbox: ${sandboxName}`);
|
||||
|
||||
const client = await SandboxAgent.connect({ baseUrl });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue