From 45bc54e5e05aed67d0464b129877ac0284cae378 Mon Sep 17 00:00:00 2001 From: hanshino Date: Mon, 5 Feb 2024 16:54:40 +0000 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=92=B0=E5=A2=83=E8=AE=8A?= =?UTF-8?q?=E6=95=B8=E8=A8=AD=E5=AE=9A=E6=AA=94=E6=A1=88=E8=BC=89=E5=85=A5?= =?UTF-8?q?=E6=A2=9D=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/knexfile.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/knexfile.js b/app/knexfile.js index b2cb263a..18fb7f2d 100644 --- a/app/knexfile.js +++ b/app/knexfile.js @@ -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: {