sync
This commit is contained in:
parent
d21477d55a
commit
31d2d38d7a
1 changed files with 4 additions and 1 deletions
|
|
@ -5,9 +5,12 @@ export const Resource = new Proxy(
|
||||||
{},
|
{},
|
||||||
{
|
{
|
||||||
get(_target, prop: string) {
|
get(_target, prop: string) {
|
||||||
if (prop in env) {
|
console.log(`111 ${prop}`)
|
||||||
|
if (`SST_RESOURCE_${prop}` in env) {
|
||||||
|
console.log(`222 ${prop}`)
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
const value = env[`SST_RESOURCE_${prop}`]
|
const value = env[`SST_RESOURCE_${prop}`]
|
||||||
|
console.log(`333 ${value}`)
|
||||||
return typeof value === "string" ? JSON.parse(value) : value
|
return typeof value === "string" ? JSON.parse(value) : value
|
||||||
} else if (prop === "App") {
|
} else if (prop === "App") {
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue