diff options
-rw-r--r-- | env.ts | 4 | ||||
-rw-r--r-- | index.ts | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -0,0 +1,4 @@ +import { config } from 'dotenv'; + +const { parsed } = config(); +export default parsed; @@ -1,5 +1,6 @@ import mongoose from 'mongoose'; import Promise from 'bluebird'; +import './env'; import app from './app'; mongoose.Promise = Promise; |