Skip to content

Commit

Permalink
fix: .env not load when start out of project path
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Apr 19, 2023
1 parent 7ceb1bb commit 03834ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config-class.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
require("dotenv").config();
const path = require("path");
require("dotenv").config({
path: path.join(__dirname, ".env")
});
const { logger } = require("env-var");
const uuid = require("uuid");

Expand Down

0 comments on commit 03834ce

Please sign in to comment.