From c815a2e904921d488a1e0c181a71e45c8e9534e3 Mon Sep 17 00:00:00 2001 From: Pouria Ezzati Date: Wed, 8 Jan 2025 09:46:12 +0330 Subject: [PATCH] fix setting placeholder jwt secret for migrations --- knexfile.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/knexfile.js b/knexfile.js index f851585..3cbb659 100644 --- a/knexfile.js +++ b/knexfile.js @@ -1,9 +1,7 @@ // this configuration is for migrations only // and since jwt secret is not required, it's set to a placehodler string to bypass env validation -if (process.env.NODE_ENV !== "development" && process.env.NODE_ENV !== "production") { - if (!process.env.JWT_SECRET) { - process.env.JWT_SECRET = "securekey"; - } +if (!process.env.JWT_SECRET) { + process.env.JWT_SECRET = "securekey"; } const env = require("./server/env");