Skip to content

Commit 589c3fe

Browse files
committed
chore: env fallback
1 parent 79242dd commit 589c3fe

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/env.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ export const env = createEnv({
1010
NODE_ENV: z
1111
.enum(["development", "test", "production"])
1212
.default("development"),
13-
SSV_NETWORKS: z.string(),
13+
SSV_NETWORKS: z
14+
.string()
15+
.default(
16+
'[{"networkId":560048,"apiVersion":"v4","apiNetwork":"hoodi","api":"https://api.stage.ops.ssvlabsinternal.com/api","explorerUrl":"https://hoodi.explorer.ssv.network","insufficientBalanceUrl":"https://faucet.ssv.network","googleTagSecret":"GTM-K3GR7M5","tokenAddress":"0x9F5d4Ec84fC4785788aB44F9de973cF34F7A038e","setterContractAddress":"0x58410Bef803ECd7E63B23664C586A6DB72DAf59c","getterContractAddress":"0x5AdDb3f1529C5ec70D77400499eE4bbF328368fe"}]'
17+
),
1418
},
1519

1620
/**
@@ -20,7 +24,11 @@ export const env = createEnv({
2024
*/
2125
client: {
2226
// NEXT_PUBLIC_CLIENTVAR: z.string(),
23-
NEXT_PUBLIC_SSV_NETWORKS: z.string(),
27+
NEXT_PUBLIC_SSV_NETWORKS: z
28+
.string()
29+
.default(
30+
'[{"networkId":560048,"apiVersion":"v4","apiNetwork":"hoodi","api":"https://api.stage.ops.ssvlabsinternal.com/api","explorerUrl":"https://hoodi.explorer.ssv.network","insufficientBalanceUrl":"https://faucet.ssv.network","googleTagSecret":"GTM-K3GR7M5","tokenAddress":"0x9F5d4Ec84fC4785788aB44F9de973cF34F7A038e","setterContractAddress":"0x58410Bef803ECd7E63B23664C586A6DB72DAf59c","getterContractAddress":"0x5AdDb3f1529C5ec70D77400499eE4bbF328368fe"}]'
31+
),
2432
},
2533

2634
/**

0 commit comments

Comments
 (0)