GeezerVison is showing github.com — share ssr · daonb/opencode@ea9dd4e
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: bun.lock +15-10Lines changed: 15 additions & 10 deletions Collapse file Copy file name to clipboardExpand all lines: infra/app.ts +13-6Lines changed: 13 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -31,14 +31,21 @@ export const api = new sst.cloudflare.Worker("Api", { | 31 | 31 | }, | 32 | 32 | }) | 33 | 33 |
| 34 | | -new sst.cloudflare.StaticSite("Web", { | 35 | | - path: "packages/web", | | 34 | +// new sst.cloudflare.StaticSite("Web", { | | 35 | +// path: "packages/web", | | 36 | +// domain, | | 37 | +// environment: { | | 38 | +// VITE_API_URL: api.url, | | 39 | +// }, | | 40 | +// build: { | | 41 | +// command: "bun run build", | | 42 | +// output: "dist", | | 43 | +// }, | | 44 | +// }) | | 45 | +new sst.cloudflare.Astro("Web", { | 36 | 46 | domain, | | 47 | + path: "packages/web", | 37 | 48 | environment: { | 38 | 49 | VITE_API_URL: api.url, | 39 | 50 | }, | 40 | | - build: { | 41 | | - command: "bun run build", | 42 | | - output: "dist", | 43 | | - }, | 44 | 51 | }) |
Collapse file Copy file name to clipboardExpand all lines: package.json +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 21 | 21 | }, | 22 | 22 | "devDependencies": { | 23 | 23 | "prettier": "3.5.3", | 24 | | - "sst": "3.16.0" | | 24 | + "sst": "3.17.3" | 25 | 25 | }, | 26 | 26 | "repository": { | 27 | 27 | "type": "git", | |
Collapse file Copy file name to clipboardExpand all lines: packages/web/astro.config.mjs +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | // @ts-check | | 2 | +import aws from "astro-sst" | 2 | 3 | import { defineConfig } from "astro/config" | 3 | 4 | import starlight from "@astrojs/starlight" | 4 | 5 | import solidJs from "@astrojs/solid-js" | @@ -11,6 +12,8 @@ const github = "https://github.com/sst/opencode" | 11 | 12 |
| 12 | 13 | // https://astro.build/config | 13 | 14 | export default defineConfig({ | | 15 | + output: "server", | | 16 | + adapter: aws(), | 14 | 17 | devToolbar: { | 15 | 18 | enabled: false, | 16 | 19 | }, | |
Collapse file Copy file name to clipboardExpand all lines: packages/web/package.json +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 18 | 18 | "@types/luxon": "3.6.2", | 19 | 19 | "ai": "catalog:", | 20 | 20 | "astro": "5.7.13", | | 21 | + "astro-sst": "3.1.4", | 21 | 22 | "diff": "8.0.2", | 22 | 23 | "luxon": "3.6.1", | 23 | 24 | "rehype-autolink-headings": "7.1.0", | |
|