diff options
Diffstat (limited to 'cloud/resource')
| -rw-r--r-- | cloud/resource/resource.cloudflare.ts | 3 | ||||
| -rw-r--r-- | cloud/resource/sst-env.d.ts | 4 |
2 files changed, 7 insertions, 0 deletions
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 |
