From e84a8b3aa9985a1a28594331abc01856fda7d71f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vehbi=20=C3=96zcan?= <98270478+vehbiOzcan@users.noreply.github.com> Date: Sat, 22 Jun 2024 23:06:00 +0300 Subject: [PATCH] update: env configuration app.js --- v1/src/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v1/src/app.js b/v1/src/app.js index eebaac7..832ed0b 100644 --- a/v1/src/app.js +++ b/v1/src/app.js @@ -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 })