fix setting placeholder jwt secret for migrations
This commit is contained in:
parent
f37c66b755
commit
c815a2e904
@ -1,10 +1,8 @@
|
||||
// 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";
|
||||
}
|
||||
}
|
||||
|
||||
const env = require("./server/env");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user