diff options
| author | Frank <[email protected]> | 2025-05-23 14:26:48 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-05-26 12:40:17 -0400 |
| commit | 8cbd59296e8510cb590b162d7548872fabf16c10 (patch) | |
| tree | 70fa29295d52fb0cee4b646008a089a31f617c28 | |
| parent | 83974e0c95d65c72d12e7d58a287514c39f3768f (diff) | |
| download | opencode-8cbd59296e8510cb590b162d7548872fabf16c10.tar.gz opencode-8cbd59296e8510cb590b162d7548872fabf16c10.zip | |
Share: syc
| -rw-r--r-- | app/infra/app.ts | 22 | ||||
| -rw-r--r-- | app/packages/function/sst-env.d.ts | 4 | ||||
| -rw-r--r-- | app/sst-env.d.ts | 4 | ||||
| -rw-r--r-- | app/sst.config.ts | 8 |
4 files changed, 11 insertions, 27 deletions
diff --git a/app/infra/app.ts b/app/infra/app.ts index 1a97740f4..a331f14eb 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 41727ee9d..fdc298fd6 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 7ca38b723..b1aa7ea9a 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 e83adfd07..4c36fea58 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() { |
