feat: load .env on app startup

This commit is contained in:
Nemo D'ACREMONT 2024-10-25 18:55:21 +02:00
parent 9fc9d87126
commit 55334fa2b1
No known key found for this signature in database
GPG Key ID: 6E5BCE8022FA8276

View File

@ -1,3 +1,7 @@
// Load dotenv before any process.env is accessed
import dotenv from 'dotenv';
dotenv.config()
import express from 'express';
import db from './db';