We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b4fe21 commit 2cb0552Copy full SHA for 2cb0552
config/config.js
@@ -1,7 +1,8 @@
1
const Joi = require('joi');
2
+const path = require('path');
3
4
// require and configure dotenv, will load vars in .env in PROCESS.ENV
-require('dotenv').config();
5
+require('dotenv').config({ path: path.join(__dirname, '../.env') });
6
7
// define validation for all the env vars
8
const envVarsSchema = Joi.object({
0 commit comments