summaryrefslogtreecommitdiffhomepage
path: root/js/src/share/share.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/share/share.ts')
-rw-r--r--js/src/share/share.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/src/share/share.ts b/js/src/share/share.ts
index f8e25e07d..b857cac59 100644
--- a/js/src/share/share.ts
+++ b/js/src/share/share.ts
@@ -52,7 +52,9 @@ export namespace Share {
await state();
}
- const URL = process.env["OPENCODE_API"] ?? "https://api.dev.opencode.ai";
+ export const URL =
+ process.env["OPENCODE_API"] ?? "https://api.dev.opencode.ai";
+
export async function create(sessionID: string) {
return fetch(`${URL}/share_create`, {
method: "POST",