|
|
@ -2,8 +2,8 @@ import { cleanEnv, num, str, bool } from "envalid"; |
|
|
|
|
|
|
|
const env = cleanEnv(process.env, { |
|
|
|
PORT: num({ default: 3000 }), |
|
|
|
SITE_NAME: str({ example: "Kutt" }), |
|
|
|
DEFAULT_DOMAIN: str({ example: "kutt.it" }), |
|
|
|
SITE_NAME: str({ example: "Klip" }), |
|
|
|
DEFAULT_DOMAIN: str({ example: "klip.example" }), |
|
|
|
LINK_LENGTH: num({ default: 6 }), |
|
|
|
DB_HOST: str({ default: "localhost" }), |
|
|
|
DB_PORT: num({ default: 5432 }), |
|
|
@ -34,7 +34,7 @@ const env = cleanEnv(process.env, { |
|
|
|
MAIL_PORT: num(), |
|
|
|
MAIL_SECURE: bool({ default: false }), |
|
|
|
MAIL_USER: str(), |
|
|
|
MAIL_FROM: str({ default: "", example: "Kutt <support@kutt.it>" }), |
|
|
|
MAIL_FROM: str({ default: "", example: "Klip <support@klip.example>" }), |
|
|
|
MAIL_PASSWORD: str(), |
|
|
|
REPORT_EMAIL: str({ default: "" }), |
|
|
|
CONTACT_EMAIL: str({ default: "" }), |
|
|
|