This commit is contained in:
Frank 2025-12-23 12:58:28 -05:00 committed by Aiden Cline
commit ad93850696
9 changed files with 33 additions and 8 deletions

View file

@ -45,7 +45,7 @@ new sst.cloudflare.x.Astro("Web", {
},
})
new sst.cloudflare.StaticSite("WebApp", {
const webApp = new sst.cloudflare.StaticSite("WebApp", {
domain: "app." + domain,
path: "packages/app",
build: {
@ -53,3 +53,11 @@ new sst.cloudflare.StaticSite("WebApp", {
output: "./dist",
},
})
// Temporarily deploy the same app to desktop.domain without doing a full build
webApp.url.apply((url) => {
new sst.cloudflare.StaticSite("Desktop", {
domain: "desktop." + domain,
path: "packages/app/dist",
})
})

View file

@ -1,6 +0,0 @@
import { domain } from "./stage"
new sst.cloudflare.StaticSite("Desktop", {
domain: "desktop." + domain,
path: "packages/app/public",
})