use dotenv for proper barrelling in env.ts

This commit is contained in:
zkldi
2021-05-25 21:44:20 +01:00
parent 986ca0f422
commit d29ff5b700
2 changed files with 2 additions and 2 deletions
+2
View File
@@ -1,4 +1,6 @@
// barrel file for re-exporting env variables.
import dotenv from "dotenv";
dotenv.config();
const envVars = [
"KTBKS_MONGO_BASE_URL",
-2
View File
@@ -14,10 +14,8 @@ function FormatVersion() {
import CreateLogCtx from "./lib/logger/logger";
import server from "./server/server";
import serverConfig from "./server/server-config";
import dotenv from "dotenv";
import { LOG_LEVEL } from "./lib/env/env";
dotenv.config();
const logger = CreateLogCtx(__filename);