Skip to content

Commit 131ad9a

Browse files
author
Frank
committed
Add docs site to sst.config.ts
1 parent 90143ae commit 131ad9a

File tree

5 files changed

+23
-1
lines changed

5 files changed

+23
-1
lines changed

infra/app.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,11 @@ new sst.aws.StaticSite("Web", {
4646
},
4747
path: "app/web",
4848
})
49+
50+
new sst.aws.Astro("Docs", {
51+
route: {
52+
router,
53+
path: "/docs",
54+
},
55+
path: "www",
56+
})

infra/zero.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,12 @@ export const zero = new sst.aws.Service("Zero", {
131131
startPeriod: "300 seconds",
132132
},
133133
loadBalancer: {
134-
domain: "zero." + domain,
134+
domain: {
135+
name: "zero." + domain,
136+
dns: sst.cloudflare.dns({
137+
zone: "2eeb3aac61ad26f10be95c5365bd8b89",
138+
}),
139+
},
135140
rules: [
136141
{ listen: "443/https", forward: "4848/http" },
137142
{ listen: "80/http", forward: "4848/http" },

www/astro.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@ import starlight from "@astrojs/starlight"
33
import { defineConfig } from "astro/config"
44
import { rehypeHeadingIds } from "@astrojs/markdown-remark"
55
import rehypeAutolinkHeadings from "rehype-autolink-headings"
6+
import aws from "astro-sst"
67
import config from "./config"
78

89
const url = "https://opencontrol.ai"
910

1011
// https://astro.build/config
1112
export default defineConfig({
1213
site: url,
14+
adapter: aws(),
15+
base: "/docs",
1316
trailingSlash: "always",
1417
devToolbar: {
1518
enabled: false,

www/bun.lock

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"@astrojs/starlight": "^0.32.0",
1616
"@fontsource/ibm-plex-mono": "^5.1.0",
1717
"astro": "^5.1.5",
18+
"astro-sst": "3.1.2",
1819
"rehype-autolink-headings": "^7.1.0",
1920
"sharp": "^0.33.4",
2021
"toolbeam-docs-theme": "^0.0.4"

0 commit comments

Comments
 (0)