mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-25 19:54:22 +01:00
Infra: use Astro component
This commit is contained in:
2
packages/function/sst-env.d.ts
vendored
2
packages/function/sst-env.d.ts
vendored
@@ -7,7 +7,7 @@ import "sst"
|
||||
declare module "sst" {
|
||||
export interface Resource {
|
||||
"Web": {
|
||||
"type": "sst.cloudflare.StaticSite"
|
||||
"type": "sst.cloudflare.Astro"
|
||||
"url": string
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user