summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--infra/app.ts10
-rw-r--r--infra/desktop.ts6
-rw-r--r--packages/console/core/sst-env.d.ts4
-rw-r--r--packages/console/function/sst-env.d.ts4
-rw-r--r--packages/console/resource/sst-env.d.ts4
-rw-r--r--packages/enterprise/sst-env.d.ts4
-rw-r--r--packages/function/sst-env.d.ts4
-rw-r--r--sst-env.d.ts4
-rw-r--r--sst.config.ts1
9 files changed, 33 insertions, 8 deletions
diff --git a/infra/app.ts b/infra/app.ts
index 1b2351ec8..0879962db 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 5e326af81..000000000
--- 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 ffa17f276..d68cca1a0 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 ffa17f276..d68cca1a0 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 ffa17f276..d68cca1a0 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 ffa17f276..d68cca1a0 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 ffa17f276..d68cca1a0 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 813d654a0..eaf6d4e33 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 342af095f..b8e56473b 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")
},
})