File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 6363 IDENTITY_SERVICE_PUBLIC_KEY
6464 env :
6565 CURRENT_ENVIRONMENT : staging
66- CLOUDFLARE_ACCOUNT_ID : ${{secrets.CLOUDFLARE_ACCOUNT_ID}}
6766 CLOUDFLARE_API_TOKEN : ${{secrets.CLOUDFLARE_API_TOKEN}}
68- DISCORD_APPLICATION_ID : ${{secrets.DISCORD_APPLICATION_ID}}
6967 DISCORD_PUBLIC_KEY : ${{secrets.DISCORD_PUBLIC_KEY}}
7068 DISCORD_TOKEN : ${{secrets.DISCORD_TOKEN}}
7169 BOT_PRIVATE_KEY : ${{secrets.BOT_PRIVATE_KEY}}
Original file line number Diff line number Diff line change @@ -39,8 +39,7 @@ export function validateEnv (){
3939
4040 // Logging missing environment variables and exit if any are missing
4141 if ( missingEnvVars . length > 0 ) {
42- console . error ( `Missing environment variables: ${ missingEnvVars . join ( ', ' ) } ` ) ;
43- process . exit ( 1 ) ; // Exit with code 1 if any required env var is missing
42+ throw new Error ( `Missing environment variables: ${ missingEnvVars . join ( ', ' ) } ` ) ;
4443 } else {
4544 console . log ( 'All required environment variables are set.' ) ;
4645 }
You can’t perform that action at this time.
0 commit comments