diff options
| author | Dax Raad <[email protected]> | 2025-07-03 09:58:25 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-07-03 09:58:25 -0400 |
| commit | aeea84a87762e94e5903942e8ef0727be9c159a5 (patch) | |
| tree | cd44c3e6a2df97d538f5faf7e39e9bd5f846db0d /packages/function | |
| parent | a54c5c629802a5645a116c2a1542386cfde029d2 (diff) | |
| download | opencode-aeea84a87762e94e5903942e8ef0727be9c159a5.tar.gz opencode-aeea84a87762e94e5903942e8ef0727be9c159a5.zip | |
fix webdomain
Diffstat (limited to 'packages/function')
| -rw-r--r-- | packages/function/src/api.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/function/src/api.ts b/packages/function/src/api.ts index 0d5e44df1..701b9854b 100644 --- a/packages/function/src/api.ts +++ b/packages/function/src/api.ts @@ -4,6 +4,7 @@ import { randomUUID } from "node:crypto" type Env = { SYNC_SERVER: DurableObjectNamespace<SyncServer> Bucket: R2Bucket + WEB_DOMAIN: string } export class SyncServer extends DurableObject<Env> { @@ -127,7 +128,7 @@ export default { return new Response( JSON.stringify({ secret, - url: "https://opencode.ai/s/" + short, + url: `https://${env.WEB_DOMAIN}/s/${short}`, }), { headers: { "Content-Type": "application/json" }, |
