Infra: use Astro component

This commit is contained in:
Frank
2025-06-07 23:46:53 -04:00
parent cdbdb96218
commit 028d589ea0
7 changed files with 235 additions and 51 deletions

View File

@@ -7,7 +7,7 @@ import "sst"
declare module "sst" {
export interface Resource {
"Web": {
"type": "sst.cloudflare.StaticSite"
"type": "sst.cloudflare.Astro"
"url": string
}
}

View File

@@ -1,8 +1,8 @@
// @ts-check
import aws from "astro-sst"
import { defineConfig } from "astro/config"
import starlight from "@astrojs/starlight"
import solidJs from "@astrojs/solid-js"
import cloudflare from "@astrojs/cloudflare"
import theme from "toolbeam-docs-theme"
import { rehypeHeadingIds } from "@astrojs/markdown-remark"
import rehypeAutolinkHeadings from "rehype-autolink-headings"
@@ -13,7 +13,9 @@ const github = "https://github.com/sst/opencode"
// https://astro.build/config
export default defineConfig({
output: "server",
adapter: aws(),
adapter: cloudflare({
imageService: "passthrough",
}),
devToolbar: {
enabled: false,
},

View File

@@ -10,6 +10,7 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/cloudflare": "^12.5.4",
"@astrojs/markdown-remark": "6.3.1",
"@astrojs/solid-js": "5.1.0",
"@astrojs/starlight": "0.34.3",
@@ -18,7 +19,6 @@
"@types/luxon": "3.6.2",
"ai": "catalog:",
"astro": "5.7.13",
"astro-sst": "3.1.4",
"diff": "8.0.2",
"luxon": "3.6.1",
"marked": "15.0.12",
@@ -29,7 +29,8 @@
"toolbeam-docs-theme": "0.2.4"
},
"devDependencies": {
"@types/node": "catalog:",
"typescript": "catalog:",
"@types/node": "catalog:"
"wrangler": "4.19.1"
}
}