We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab83f60 commit fc265efCopy full SHA for fc265ef
server/env.js
@@ -15,6 +15,11 @@ if (process.env.LINK_CUSTOM_ALPHABET === "") {
15
delete process.env.LINK_CUSTOM_ALPHABET;
16
}
17
18
+// make sure jwt secret is not empty
19
+if (process.env.JWT_SECRET === "") {
20
+ delete process.env.JWT_SECRET;
21
+}
22
+
23
const env = cleanEnv(process.env, {
24
PORT: num({ default: 3000 }),
25
SITE_NAME: str({ example: "Kutt", default: "Kutt" }),
0 commit comments