File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import {
2222import { config as configFromDotEnv } from "dotenv" ;
2323
2424export function loadEnv ( env : env , fromWorkerEnv : boolean ) : env {
25+ console . log ( env ) ;
2526 const Env : env = {
2627 //if `fromWokerEnv` is true, then load from the `env` passed as argument to the function,
2728 // else if `fromWokerEnv` is false, load from process.env
Original file line number Diff line number Diff line change @@ -108,7 +108,9 @@ export default {
108108 }
109109 }
110110 const envLoadedFromWorker : env = loadEnv ( env , true ) ;
111- console . log ( envLoadedFromWorker . DISCORD_APPLICATION_ID ) ;
111+ console . log ( "app id: " + envLoadedFromWorker . DISCORD_APPLICATION_ID ) ;
112+ console . log ( envLoadedFromWorker . TEST_ENV_VAR == null ) ;
113+ console . log ( "guild id: " + envLoadedFromWorker . DISCORD_GUILD_ID ) ;
112114 return router . handle ( request , envLoadedFromWorker , ctx ) ;
113115 } ,
114116
You can’t perform that action at this time.
0 commit comments