aboutsummaryrefslogtreecommitdiff
path: root/env.ts
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-10-07 20:14:57 +0300
committereug-vs <eug-vs@keemail.me>2020-10-07 20:14:57 +0300
commit1229c5a4c76411617dc8eb8575f26bc35afb92b2 (patch)
tree1da41c0ed96cce1262239515b516f5d6c9f929ce /env.ts
parent052212ef180af5a86fa4b79094a25802f0184139 (diff)
downloadwhich-api-1229c5a4c76411617dc8eb8575f26bc35afb92b2.tar.gz
feat: load .env in runtime
Diffstat (limited to 'env.ts')
-rw-r--r--env.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/env.ts b/env.ts
new file mode 100644
index 0000000..60874cc
--- /dev/null
+++ b/env.ts
@@ -0,0 +1,4 @@
+import { config } from 'dotenv';
+
+const { parsed } = config();
+export default parsed;