diff options
| author | Jay V <[email protected]> | 2025-07-07 16:31:10 -0400 |
|---|---|---|
| committer | Jay V <[email protected]> | 2025-07-07 16:31:15 -0400 |
| commit | facd851b119f3570a00769a2cb8755e5d245fdff (patch) | |
| tree | a0f44730148cb2d60493772372ff3bbd27f31519 /packages/web/astro.config.mjs | |
| parent | c51de945a5620d77ccb25652c732d259035a8cf7 (diff) | |
| download | opencode-facd851b119f3570a00769a2cb8755e5d245fdff.tar.gz opencode-facd851b119f3570a00769a2cb8755e5d245fdff.zip | |
docs: dynamic domain
Diffstat (limited to 'packages/web/astro.config.mjs')
| -rw-r--r-- | packages/web/astro.config.mjs | 7 |
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", |
