Skip to content

Commit

Permalink
update: env configuration app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
vehbiOzcan authored Jun 22, 2024
1 parent 0c76ec9 commit e84a8b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v1/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ const dotenv = require('dotenv');
const errorHandler = require('./middlewares/errorHandler');
const notFound = require('./middlewares/notFound');

let envFile = process.env.NODE_ENV == "production" ? ".env.production" : ".env.development";
//let envFile = process.env.NODE_ENV == "production" ? ".env.production" : ".env.development";

//Enviroment Variables
dotenv.config(
{
path: `./config/env/${envFile}` //dotenv config içerisine config dosyamızın path ini verdik
path: `./config/env/.env` //dotenv config içerisine config dosyamızın path ini verdik
})


Expand Down

0 comments on commit e84a8b3

Please sign in to comment.