Bladeren bron

Share: syc

Frank 9 maanden geleden
bovenliggende
commit
8cbd59296e
4 gewijzigde bestanden met toevoegingen van 11 en 27 verwijderingen
  1. 11 11
      app/infra/app.ts
  2. 0 4
      app/packages/function/sst-env.d.ts
  3. 0 4
      app/sst-env.d.ts
  4. 0 8
      app/sst.config.ts

+ 11 - 11
app/infra/app.ts

@@ -23,14 +23,14 @@ export const api = new sst.cloudflare.Worker("Api", {
   },
 })
 
-new sst.cloudflare.StaticSite("Web", {
-  path: "packages/web",
-  environment: {
-    VITE_API_URL: api.url,
-  },
-  errorPage: "fallback.html",
-  build: {
-    command: "bun run build",
-    output: "dist/client",
-  },
-})
+//new sst.cloudflare.StaticSite("Web", {
+//  path: "packages/web",
+//  environment: {
+//    VITE_API_URL: api.url,
+//  },
+//  errorPage: "fallback.html",
+//  build: {
+//    command: "bun run build",
+//    output: "dist/client",
+//  },
+//})

+ 0 - 4
app/packages/function/sst-env.d.ts

@@ -6,10 +6,6 @@
 import "sst"
 declare module "sst" {
   export interface Resource {
-    "Web": {
-      "type": "sst.cloudflare.StaticSite"
-      "url": string
-    }
   }
 }
 // cloudflare 

+ 0 - 4
app/sst-env.d.ts

@@ -12,10 +12,6 @@ declare module "sst" {
     "Bucket": {
       "type": "sst.cloudflare.Bucket"
     }
-    "Web": {
-      "type": "sst.cloudflare.StaticSite"
-      "url": string
-    }
   }
 }
 /// <reference path="sst-env.d.ts" />

+ 0 - 8
app/sst.config.ts

@@ -7,14 +7,6 @@ export default $config({
       removal: input?.stage === "production" ? "retain" : "remove",
       protect: ["production"].includes(input?.stage),
       home: "cloudflare",
-      providers: {
-        cloudflare: {
-          apiToken:
-            input?.stage === "production"
-              ? process.env.PRODUCTION_CLOUDFLARE_API_TOKEN
-              : process.env.DEV_CLOUDFLARE_API_TOKEN,
-        },
-      },
     }
   },
   async run() {