summaryrefslogtreecommitdiffhomepage
path: root/packages/web/astro.config.mjs
diff options
context:
space:
mode:
authorJay V <[email protected]>2025-07-07 16:31:10 -0400
committerJay V <[email protected]>2025-07-07 16:31:15 -0400
commitfacd851b119f3570a00769a2cb8755e5d245fdff (patch)
treea0f44730148cb2d60493772372ff3bbd27f31519 /packages/web/astro.config.mjs
parentc51de945a5620d77ccb25652c732d259035a8cf7 (diff)
downloadopencode-facd851b119f3570a00769a2cb8755e5d245fdff.tar.gz
opencode-facd851b119f3570a00769a2cb8755e5d245fdff.zip
docs: dynamic domain
Diffstat (limited to 'packages/web/astro.config.mjs')
-rw-r--r--packages/web/astro.config.mjs7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/web/astro.config.mjs b/packages/web/astro.config.mjs
index 742d52951..538784acf 100644
--- a/packages/web/astro.config.mjs
+++ b/packages/web/astro.config.mjs
@@ -9,12 +9,13 @@ import { rehypeHeadingIds } from "@astrojs/markdown-remark"
import rehypeAutolinkHeadings from "rehype-autolink-headings"
const github = "https://github.com/sst/opencode"
-
-console.log("stage", process.env.SST_STAGE)
+const stage = process.env.SST_STAGE || "dev"
// https://astro.build/config
export default defineConfig({
- site: config.url,
+ site: stage === "production"
+ ? `https://${config.domain}`
+ : `https://${stage}.${config.domain}`,
output: "server",
adapter: cloudflare({
imageService: "passthrough",