From a90f2b97238e559518603dfc3c6963782506527b Mon Sep 17 00:00:00 2001 From: Frank Date: Tue, 23 Dec 2025 12:58:28 -0500 Subject: [PATCH] ci: fix --- infra/app.ts | 10 +++++++++- infra/desktop.ts | 6 ------ packages/console/core/sst-env.d.ts | 4 ++++ packages/console/function/sst-env.d.ts | 4 ++++ packages/console/resource/sst-env.d.ts | 4 ++++ packages/enterprise/sst-env.d.ts | 4 ++++ packages/function/sst-env.d.ts | 4 ++++ sst-env.d.ts | 4 ++++ sst.config.ts | 1 - 9 files changed, 33 insertions(+), 8 deletions(-) delete mode 100644 infra/desktop.ts diff --git a/infra/app.ts b/infra/app.ts index 1b2351ec8c..0879962db2 100644 --- a/infra/app.ts +++ b/infra/app.ts @@ -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", + }) +}) diff --git a/infra/desktop.ts b/infra/desktop.ts deleted file mode 100644 index 5e326af816..0000000000 --- a/infra/desktop.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { domain } from "./stage" - -new sst.cloudflare.StaticSite("Desktop", { - domain: "desktop." + domain, - path: "packages/app/public", -}) diff --git a/packages/console/core/sst-env.d.ts b/packages/console/core/sst-env.d.ts index ffa17f2766..d68cca1a0c 100644 --- a/packages/console/core/sst-env.d.ts +++ b/packages/console/core/sst-env.d.ts @@ -98,6 +98,10 @@ declare module "sst" { "type": "sst.cloudflare.Astro" "url": string } + "WebApp": { + "type": "sst.cloudflare.StaticSite" + "url": string + } "ZEN_MODELS1": { "type": "sst.sst.Secret" "value": string diff --git a/packages/console/function/sst-env.d.ts b/packages/console/function/sst-env.d.ts index ffa17f2766..d68cca1a0c 100644 --- a/packages/console/function/sst-env.d.ts +++ b/packages/console/function/sst-env.d.ts @@ -98,6 +98,10 @@ declare module "sst" { "type": "sst.cloudflare.Astro" "url": string } + "WebApp": { + "type": "sst.cloudflare.StaticSite" + "url": string + } "ZEN_MODELS1": { "type": "sst.sst.Secret" "value": string diff --git a/packages/console/resource/sst-env.d.ts b/packages/console/resource/sst-env.d.ts index ffa17f2766..d68cca1a0c 100644 --- a/packages/console/resource/sst-env.d.ts +++ b/packages/console/resource/sst-env.d.ts @@ -98,6 +98,10 @@ declare module "sst" { "type": "sst.cloudflare.Astro" "url": string } + "WebApp": { + "type": "sst.cloudflare.StaticSite" + "url": string + } "ZEN_MODELS1": { "type": "sst.sst.Secret" "value": string diff --git a/packages/enterprise/sst-env.d.ts b/packages/enterprise/sst-env.d.ts index ffa17f2766..d68cca1a0c 100644 --- a/packages/enterprise/sst-env.d.ts +++ b/packages/enterprise/sst-env.d.ts @@ -98,6 +98,10 @@ declare module "sst" { "type": "sst.cloudflare.Astro" "url": string } + "WebApp": { + "type": "sst.cloudflare.StaticSite" + "url": string + } "ZEN_MODELS1": { "type": "sst.sst.Secret" "value": string diff --git a/packages/function/sst-env.d.ts b/packages/function/sst-env.d.ts index ffa17f2766..d68cca1a0c 100644 --- a/packages/function/sst-env.d.ts +++ b/packages/function/sst-env.d.ts @@ -98,6 +98,10 @@ declare module "sst" { "type": "sst.cloudflare.Astro" "url": string } + "WebApp": { + "type": "sst.cloudflare.StaticSite" + "url": string + } "ZEN_MODELS1": { "type": "sst.sst.Secret" "value": string diff --git a/sst-env.d.ts b/sst-env.d.ts index 813d654a07..eaf6d4e334 100644 --- a/sst-env.d.ts +++ b/sst-env.d.ts @@ -124,6 +124,10 @@ declare module "sst" { "type": "sst.cloudflare.Astro" "url": string } + "WebApp": { + "type": "sst.cloudflare.StaticSite" + "url": string + } "ZEN_MODELS1": { "type": "sst.sst.Secret" "value": string diff --git a/sst.config.ts b/sst.config.ts index 342af095f0..b8e56473bc 100644 --- a/sst.config.ts +++ b/sst.config.ts @@ -18,7 +18,6 @@ export default $config({ async run() { await import("./infra/app.js") await import("./infra/console.js") - await import("./infra/desktop.js") await import("./infra/enterprise.js") }, })