chor: add site name env

This commit is contained in:
poeti8 2020-02-05 18:26:19 +03:30
parent 3f04b87efb
commit cbc0470550
2 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,9 @@
# App port to run on
PORT=3000
# The domain that this website is on
SITE_NAME="Kutt"
# The domain that this website is on
DEFAULT_DOMAIN="localhost:3000"

View File

@ -2,6 +2,7 @@ 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" }),
LINK_LENGTH: num({ default: 6 }),
DB_HOST: str({ default: "localhost" }),