From 34dcb79dde7d9cb9779ecf34ceeba6f90297fe2a Mon Sep 17 00:00:00 2001 From: Nick Chaloult Date: Sat, 7 May 2022 14:12:53 -0400 Subject: [PATCH] Load in env vars from .env file (if it's present) on startup --- backend/server.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/server.js b/backend/server.js index bee9e15..fecb636 100644 --- a/backend/server.js +++ b/backend/server.js @@ -1,3 +1,5 @@ +require('dotenv').config(); + const { app, PORT } = require('./app'); const debug = require('./utils/debug');