Skip to content

Commit

Permalink
Merge pull request #464 from hanshino:fix/migration
Browse files Browse the repository at this point in the history
新增環境變數設定檔案載入條件
  • Loading branch information
hanshino authored Feb 5, 2024
2 parents 2bb8fd2 + 45bc54e commit 1f4520c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/knexfile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// Update with your config settings.
require("dotenv").config({
path: "../.env",
});
if (process.env.NODE_ENV !== "production") {
require("dotenv").config({
path: "../.env",
});
}

module.exports = {
development: {
Expand Down

0 comments on commit 1f4520c

Please sign in to comment.