From dc26d4035c8980ea3997c850f0ecf5a025ef45e9 Mon Sep 17 00:00:00 2001 From: Michael morais <53665466+itsmorais@users.noreply.github.com> Date: Sun, 8 Sep 2024 20:36:47 -0300 Subject: [PATCH] Update .env path --- backend/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/index.ts b/backend/src/index.ts index ab29a93..f26c934 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -3,7 +3,7 @@ import createPostgresTables from "./models/postgres"; import dotenv from "dotenv"; import router from "./routes/userRoutes"; import CreateMongoDbCollections from "./models/mongo"; -dotenv.config(); +require('dotenv').config({ path: __dirname + '/../../../.env' }); const app = express(); const PORT = process.env.PORT || 3002;