add default file name and thus making file name environment variable optional

This commit is contained in:
Pouria Ezzati 2024-09-24 07:30:06 +03:30
parent 723d392980
commit 7c14663854
No known key found for this signature in database

View File

@ -18,7 +18,7 @@ const env = cleanEnv(process.env, {
DEFAULT_DOMAIN: str({ example: "kutt.it" }),
LINK_LENGTH: num({ default: 6 }),
DB_CLIENT: str({ choices: supportedDBClients, default: "pg" }),
DB_FILENAME: str(),
DB_FILENAME: str({ default: "data" }),
DB_HOST: str({ default: "localhost" }),
DB_PORT: num({ default: 5432 }),
DB_NAME: str({ default: "postgres" }),