import dotenv from 'dotenv' ; import { Dialect , IConfig } from '../interface/config' ; const environment = dotenv . config ( ) ; if ( ! environment ) { throw new Error ( 'Couldn\'t find env file!' ) ; } export const config = { port : process . env . PORT || 3000 , dbName : process . env . DATABASE || 'bigstack' , dbUsername : process . env . USERNAME || 'root' , dbPassword : process . env . PASSWORD || 'password' , dbHost : process . env . HOST || 'localhost' , dbDialect : Dialect . MY_SQL , jwtSecret : process . env . JWT_SECRET || 'secret' , sentryKey : process . env . RAVEN || '' , environment : process . env . NODE_ENV || 'development' } ;