mirror of
https://github.com/sst/opencode.git
synced 2025-08-31 10:17:26 +00:00
docs: canonical url
This commit is contained in:
parent
da909d9684
commit
0f93ecd564
3 changed files with 7 additions and 6 deletions
|
@ -9,13 +9,10 @@ import { rehypeHeadingIds } from "@astrojs/markdown-remark"
|
|||
import rehypeAutolinkHeadings from "rehype-autolink-headings"
|
||||
|
||||
const github = "https://github.com/sst/opencode"
|
||||
const stage = process.env.SST_STAGE || "dev"
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
site: stage === "production"
|
||||
? `https://${config.domain}`
|
||||
: `https://${stage}.${config.domain}`,
|
||||
site: config.url,
|
||||
output: "server",
|
||||
adapter: cloudflare({
|
||||
imageService: "passthrough",
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
const stage = process.env.SST_STAGE || "dev"
|
||||
|
||||
export default {
|
||||
domain: "opencode.ai",
|
||||
url: stage === "production"
|
||||
? "https://opencode.ai"
|
||||
: `https://${stage}.opencode.ai`,
|
||||
socialCard: "https://social-cards.sst.dev",
|
||||
github: "https://github.com/sst/opencode",
|
||||
discord: "https://discord.gg/opencode",
|
||||
|
|
|
@ -13,7 +13,7 @@ const {
|
|||
const isDocs = slug.startsWith("docs")
|
||||
|
||||
let encodedTitle = '';
|
||||
let ogImage = `https://${config.domain}/social-share.png`;
|
||||
let ogImage = `${config.url}/social-share.png`;
|
||||
let truncatedDesc = '';
|
||||
|
||||
if (isDocs) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue