File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,10 +15,12 @@ const envSchema = z.object({
1515 NEXT_SENTINEL_URL : z . string ( ) . startsWith ( 'http' , 'Must be a valid HTTP URL' ) ,
1616 REDIS_URL : z . string ( ) . optional ( ) ,
1717
18- X_CLIENT_ID : z . string ( ) . min ( 1 ) ,
19- X_CLIENT_SECRET : z . string ( ) . min ( 1 ) ,
20- DISCORD_CLIENT_ID : z . string ( ) . min ( 1 ) ,
21- DISCORD_CLIENT_SECRET : z . string ( ) . min ( 1 ) ,
18+ // OAuth is optional (empty = provider disabled). Default to '' so an unset
19+ // value validates and the type stays `string` for downstream consumers.
20+ X_CLIENT_ID : z . string ( ) . default ( '' ) ,
21+ X_CLIENT_SECRET : z . string ( ) . default ( '' ) ,
22+ DISCORD_CLIENT_ID : z . string ( ) . default ( '' ) ,
23+ DISCORD_CLIENT_SECRET : z . string ( ) . default ( '' ) ,
2224
2325 APP_URL : z . string ( ) . startsWith ( 'http' , 'Must be a valid HTTP URL' ) ,
2426 ETHEREUM_EXPLORER_URL : z . string ( ) . startsWith ( 'http' , 'Must be a valid HTTP URL' ) ,
You can’t perform that action at this time.
0 commit comments