The open source coding agent.
TypeScript
docs: social share
Jay V0e0770921e90
diff --git a/packages/web/astro.config.mjs b/packages/web/astro.config.mjsindex 232717b52b3..3ce92decfab 100644--- a/packages/web/astro.config.mjs+++ b/packages/web/astro.config.mjs@@ -8,14 +8,12 @@ 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"-const headerLinks = [- { name: "Docs", url: "/docs/" },- { name: "GitHub", url: github },-]// https://astro.build/configexport default defineConfig({+ site: url,output: "server",adapter: cloudflare({imageService: "passthrough",@@ -37,6 +35,29 @@ export default defineConfig({social: [{ icon: "github", label: "GitHub", href: config.github },],+ head: [+ {+ tag: "link",+ attrs: {+ rel: "icon",+ 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/`,},