summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJay V <[email protected]>2025-06-26 13:21:39 -0400
committerJay V <[email protected]>2025-06-26 13:21:42 -0400
commit0e0770921e90ed404d653051f18552abfdcb9fce (patch)
tree6749cf4a2c4a6bf15aa7ab3ab6860161addd4fd6
parent8edbb74352975ab708dc51e8abb6e0a823aef288 (diff)
downloadopencode-0e0770921e90ed404d653051f18552abfdcb9fce.tar.gz
opencode-0e0770921e90ed404d653051f18552abfdcb9fce.zip
docs: social share
-rw-r--r--packages/web/astro.config.mjs29
1 files changed, 25 insertions, 4 deletions
diff --git a/packages/web/astro.config.mjs b/packages/web/astro.config.mjs
index 232717b52..3ce92decf 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/config
export 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/`,
},