Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
env konfigurasyonu app.js e taşındı
Browse files Browse the repository at this point in the history
  • Loading branch information
vehbiOzcan authored Feb 16, 2024
1 parent 855edbd commit 54e7ac0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion v1/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const path = require("path");

const config = require("./config");
const loaders = require("./loaders");
const dotenv = require('dotenv')

// Routes
const {
Expand All @@ -17,7 +18,9 @@ const {

const handleResponse = require("./middlewares/handleResponseMiddleware");

config();
dotenv.config({
path: "./config/.env" //dotenv config içerisine config dosyamızın path ini verdik
});
loaders();

const app = express();
Expand Down

0 comments on commit 54e7ac0

Please sign in to comment.