sync
This commit is contained in:
parent
fcf4dff2ce
commit
ad1d14775d
4 changed files with 5 additions and 35 deletions
|
|
@ -9,6 +9,11 @@ export const Resource = new Proxy(
|
|||
// @ts-expect-error
|
||||
const value = env[`SST_RESOURCE_${prop}`]
|
||||
return typeof value === "string" ? JSON.parse(value) : value
|
||||
}
|
||||
if (prop in env) {
|
||||
// @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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue