From a3513244f121c7decc84f0a488dea798409e1710 Mon Sep 17 00:00:00 2001 From: Frank Date: Tue, 9 Sep 2025 15:47:24 -0400 Subject: wip: zen --- cloud/resource/resource.cloudflare.ts | 3 +++ cloud/resource/sst-env.d.ts | 4 ++++ 2 files changed, 7 insertions(+) (limited to 'cloud/resource') diff --git a/cloud/resource/resource.cloudflare.ts b/cloud/resource/resource.cloudflare.ts index ad3fbe2a8..a56b1e417 100644 --- a/cloud/resource/resource.cloudflare.ts +++ b/cloud/resource/resource.cloudflare.ts @@ -8,6 +8,9 @@ export const Resource = new Proxy( // @ts-expect-error const value = env[prop] return typeof value === "string" ? JSON.parse(value) : value + } else if (prop === "App") { + // @ts-expect-error + return JSON.parse(env.SST_RESOURCE_App) } throw new Error(`"${prop}" is not linked in your sst.config.ts (cloudflare)`) }, diff --git a/cloud/resource/sst-env.d.ts b/cloud/resource/sst-env.d.ts index efb047ff5..fd96591b8 100644 --- a/cloud/resource/sst-env.d.ts +++ b/cloud/resource/sst-env.d.ts @@ -54,6 +54,10 @@ declare module "sst" { "type": "sst.sst.Secret" "value": string } + "OPENAI_API_KEY": { + "type": "sst.sst.Secret" + "value": string + } "STRIPE_SECRET_KEY": { "type": "sst.sst.Secret" "value": string -- cgit v1.2.3