make code configurable

This commit is contained in:
2024-04-20 01:04:01 +07:00
parent 345be40222
commit 89967e7b35
4 changed files with 7 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
export const Config = {
jwt_secret:
process.env.JWT_SECRET ||
"T4kE6/tIqCVEZYg9lwsqeJjYfOoXTXSXDEMyParsJjj57CjSdkrfPOLWP74/9lJpcBA=",
token_duration: "365d",
api_url: "http://localhost:3000",
token_duration: process.env.TOKEN_DURATION || "365d",
api_url: process.env.API_URL || "http://localhost:3000",
};