summaryrefslogtreecommitdiffhomepage
path: root/packages/web/astro.config.mjs
diff options
context:
space:
mode:
authorJay V <[email protected]>2025-06-27 20:03:17 -0400
committerJay V <[email protected]>2025-06-27 20:03:17 -0400
commit6a7983a4ea9cb4ed6ec93f99f742df5a384cf807 (patch)
tree2f7e3529c9bc0c4fb1e5ea55a4207c89218cfdcf /packages/web/astro.config.mjs
parent737146fca18af16c05470ed00f0437b96fbff53f (diff)
downloadopencode-6a7983a4ea9cb4ed6ec93f99f742df5a384cf807.tar.gz
opencode-6a7983a4ea9cb4ed6ec93f99f742df5a384cf807.zip
docs: adding more share images
Diffstat (limited to 'packages/web/astro.config.mjs')
-rw-r--r--packages/web/astro.config.mjs18
1 files changed, 2 insertions, 16 deletions
diff --git a/packages/web/astro.config.mjs b/packages/web/astro.config.mjs
index 9099c6df3..2ba90fe8d 100644
--- a/packages/web/astro.config.mjs
+++ b/packages/web/astro.config.mjs
@@ -8,12 +8,11 @@ import config from "./config.mjs"
import { rehypeHeadingIds } from "@astrojs/markdown-remark"
import rehypeAutolinkHeadings from "rehype-autolink-headings"
-const url = "https://opencode.ai"
const github = "https://github.com/sst/opencode"
// https://astro.build/config
export default defineConfig({
- site: url,
+ site: config.url,
output: "server",
adapter: cloudflare({
imageService: "passthrough",
@@ -41,20 +40,6 @@ export default defineConfig({
href: "/favicon.svg",
},
},
- {
- tag: "meta",
- attrs: {
- property: "og:image",
- content: `${url}/social-share.png`,
- },
- },
- {
- tag: "meta",
- attrs: {
- property: "twitter:image",
- content: `${url}/social-share.png`,
- },
- },
],
editLink: {
baseUrl: `${github}/edit/master/www/`,
@@ -80,6 +65,7 @@ export default defineConfig({
],
components: {
Hero: "./src/components/Hero.astro",
+ Head: "./src/components/Head.astro",
Header: "./src/components/Header.astro",
},
plugins: [