summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-06-19 13:26:15 -0400
committerDax Raad <[email protected]>2025-06-19 13:26:15 -0400
commita85b0a370ec02068b8dfced63f5c21ba9fdbfa07 (patch)
tree8deb54c4620dce6a9409efa320fad281352f5d3f
parente7784d28646f34140fdfcfc39292e639883240c1 (diff)
downloadopencode-a85b0a370ec02068b8dfced63f5c21ba9fdbfa07.tar.gz
opencode-a85b0a370ec02068b8dfced63f5c21ba9fdbfa07.zip
ci: share
-rw-r--r--.github/workflows/deploy.yml3
-rw-r--r--packages/function/src/api.ts2
-rw-r--r--packages/opencode/src/cli/cmd/run.ts2
3 files changed, 4 insertions, 3 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 23b8a1e6e..cc89914fe 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -4,6 +4,7 @@ on:
push:
branches:
- dev
+ - production
workflow_dispatch:
concurrency: ${{ github.workflow }}-${{ github.ref }}
@@ -20,6 +21,6 @@ jobs:
- run: bun install
- - run: bun sst deploy --stage=dev
+ - run: bun sst deploy --stage=${{ github.ref_name }}
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
diff --git a/packages/function/src/api.ts b/packages/function/src/api.ts
index e2a773453..1d0e2cd07 100644
--- a/packages/function/src/api.ts
+++ b/packages/function/src/api.ts
@@ -120,7 +120,7 @@ export default {
return new Response(
JSON.stringify({
secret,
- url: "https://dev.opencode.ai/s/" + short,
+ url: "https://opencode.ai/s/" + short,
}),
{
headers: { "Content-Type": "application/json" },
diff --git a/packages/opencode/src/cli/cmd/run.ts b/packages/opencode/src/cli/cmd/run.ts
index 092c11345..24b51852c 100644
--- a/packages/opencode/src/cli/cmd/run.ts
+++ b/packages/opencode/src/cli/cmd/run.ts
@@ -89,7 +89,7 @@ export const RunCommand = cmd({
await Session.share(session.id)
UI.println(
UI.Style.TEXT_INFO_BOLD +
- "~ https://dev.opencode.ai/s/" +
+ "~ https://opencode.ai/s/" +
session.id.slice(-8),
)
}