mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-25 03:34:22 +01:00
ignore: cloud resource
This commit is contained in:
0
cloud/core/src/util/env.cloudflare.ts
Normal file
0
cloud/core/src/util/env.cloudflare.ts
Normal file
@@ -1,14 +0,0 @@
|
||||
import { env } from "cloudflare:workers";
|
||||
|
||||
export const Resource = new Proxy(
|
||||
{},
|
||||
{
|
||||
get(_target, prop: string) {
|
||||
if (prop in env) {
|
||||
const value = env[prop];
|
||||
return typeof value === "string" ? JSON.parse(value) : value;
|
||||
}
|
||||
throw new Error(`"${prop}" is not linked in your sst.config.ts`);
|
||||
},
|
||||
}
|
||||
) as Record<string, any>;
|
||||
Reference in New Issue
Block a user