Skip to content

The open source coding agent.

TypeScript

docs: debug

Jay V9253a3ca9e56
diff --git a/infra/app.ts b/infra/app.ts
index 834936b7142..f585748ae9b 100644
--- a/infra/app.ts
+++ b/infra/app.ts
@@ -39,6 +39,7 @@ new sst.cloudflare.x.Astro("Web", {
domain,
path: "packages/web",
environment: {
+ SST_STAGE: $app.stage,
VITE_API_URL: api.url,
},
})
diff --git a/packages/web/astro.config.mjs b/packages/web/astro.config.mjs
index 05866c5d183..742d5295139 100644
--- a/packages/web/astro.config.mjs
+++ b/packages/web/astro.config.mjs
@@ -10,7 +10,7 @@ import rehypeAutolinkHeadings from "rehype-autolink-headings"
const github = "https://github.com/sst/opencode"
-console.log(process.env.SST_STAGE)
+console.log("stage", process.env.SST_STAGE)
// https://astro.build/config
export default defineConfig({