Dax Raad 9 miesięcy temu
rodzic
commit
a85b0a370e

+ 2 - 1
.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 }}

+ 1 - 1
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" },

+ 1 - 1
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),
           )
         }