Skip to content

Commit fe85cae

Browse files
authored
test logs
1 parent 759f3ea commit fe85cae

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

config/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {
2222
import { config as configFromDotEnv } from "dotenv";
2323

2424
export 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

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)