From ea9dd4e9e251427d983c1cf3d44dec1311305c4b Mon Sep 17 00:00:00 2001 From: Jay V Date: Thu, 5 Jun 2025 15:37:17 -0400 Subject: share ssr --- infra/app.ts | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'infra') diff --git a/infra/app.ts b/infra/app.ts index 73b80994d..ca4d86799 100644 --- a/infra/app.ts +++ b/infra/app.ts @@ -31,14 +31,21 @@ export const api = new sst.cloudflare.Worker("Api", { }, }) -new sst.cloudflare.StaticSite("Web", { - path: "packages/web", +// new sst.cloudflare.StaticSite("Web", { +// path: "packages/web", +// domain, +// environment: { +// VITE_API_URL: api.url, +// }, +// build: { +// command: "bun run build", +// output: "dist", +// }, +// }) +new sst.cloudflare.Astro("Web", { domain, + path: "packages/web", environment: { VITE_API_URL: api.url, }, - build: { - command: "bun run build", - output: "dist", - }, }) -- cgit v1.2.3