We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc19dc2 commit 05738d9Copy full SHA for 05738d9
1 file changed
backend/src/shared/config/environment.ts
@@ -1,4 +1,5 @@
1
import dotenv from "dotenv";
2
+import { StringValue } from "ms";
3
4
// Only load .env file in development; in production, Railway injects env vars automatically
5
if (process.env.NODE_ENV !== "production") {
@@ -17,9 +18,9 @@ export const env = {
17
18
jwt: {
19
secret: process.env.JWT_SECRET || "default_secret",
20
refreshSecret: process.env.JWT_REFRESH_SECRET || "refresh_default_secret",
- expiresIn: (process.env.JWT_EXPIRES_IN as string) || "1d",
21
+ expiresIn: (process.env.JWT_EXPIRES_IN as StringValue) || "1d",
22
refreshExpiresIn:
- (process.env.JWT_REFRESH_EXPIRES_IN as string) || "30d",
23
+ (process.env.JWT_REFRESH_EXPIRES_IN as StringValue) || "30d",
24
},
25
ai: {
26
geminiKey: process.env.GEMINI_API_KEY,
0 commit comments