summaryrefslogtreecommitdiffhomepage
path: root/cloud/resource
diff options
context:
space:
mode:
authorFrank <[email protected]>2025-09-09 15:47:24 -0400
committerFrank <[email protected]>2025-09-09 15:47:28 -0400
commita3513244f121c7decc84f0a488dea798409e1710 (patch)
tree1d813e96bca7ba103f1c1f10c76e65fe0a31ced9 /cloud/resource
parent32b47fcc1e70dcfd645974be98db4d31cc728058 (diff)
downloadopencode-a3513244f121c7decc84f0a488dea798409e1710.tar.gz
opencode-a3513244f121c7decc84f0a488dea798409e1710.zip
wip: zen
Diffstat (limited to 'cloud/resource')
-rw-r--r--cloud/resource/resource.cloudflare.ts3
-rw-r--r--cloud/resource/sst-env.d.ts4
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