🚚 basic move to config.ts

ref #18
This commit is contained in:
2020-12-06 10:29:56 +01:00
parent 5c259484ee
commit 99d8a0360f
6 changed files with 23 additions and 15 deletions

7
src/config.ts Normal file
View File

@@ -0,0 +1,7 @@
import * as dotenvSafe from "dotenv-safe";
dotenvSafe.config();
export const config = {
internal_port: process.env.APP_PORT || 4010,
development: process.env.NODE_ENV === "production",
jwt_secret: process.env.JWT_SECRET || "secretjwtsecret"
}