Creating a config folder and moving the ‘env’ files
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// Load environment variables from .env file
|
||||
const appEnv = process.env.APP_ENV || 'development';
|
||||
require('dotenv').config({ path: `.env.${appEnv}` });
|
||||
require('dotenv').config({ path: `config/env/.env.${appEnv}` });
|
||||
|
||||
module.exports = {
|
||||
"development": {
|
||||
|
||||
Reference in New Issue
Block a user