Explorar o código

fix: remove desktop dup

Adam hai 2 meses
pai
achega
b6c07cb1b8
Modificáronse 1 ficheiros con 5 adicións e 10 borrados
  1. 5 10
      infra/app.ts

+ 5 - 10
infra/app.ts

@@ -45,19 +45,14 @@ new sst.cloudflare.x.Astro("Web", {
   },
   },
 })
 })
 
 
-const webApp = new sst.cloudflare.StaticSite("WebApp", {
-  domain: "app." + domain,
+new sst.cloudflare.StaticSite("WebApp", {
+  domain: {
+    name: "app." + domain,
+    // redirects: ["desktop." + domain],
+  },
   path: "packages/app",
   path: "packages/app",
   build: {
   build: {
     command: "bun turbo build",
     command: "bun turbo build",
     output: "./dist",
     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",
-  })
-})