Skip to content

The open source coding agent.

TypeScript

Share: syc

Frank8cbd59296e85
diff --git a/app/infra/app.ts b/app/infra/app.ts
index 1a97740f456..a331f14ebb5 100644
--- a/app/infra/app.ts
+++ b/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",
+// },
+//})
diff --git a/app/packages/function/sst-env.d.ts b/app/packages/function/sst-env.d.ts
index 41727ee9ddd..fdc298fd601 100644
--- a/app/packages/function/sst-env.d.ts
+++ b/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
diff --git a/app/sst-env.d.ts b/app/sst-env.d.ts
index 7ca38b723ba..b1aa7ea9a3b 100644
--- a/app/sst-env.d.ts
+++ b/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" />
diff --git a/app/sst.config.ts b/app/sst.config.ts
index e83adfd076e..4c36fea5852 100644
--- a/app/sst.config.ts
+++ b/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() {