summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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),
)
}