diff --git a/src/config.ts b/src/config.ts index 07df5a6..0f845b4 100644 --- a/src/config.ts +++ b/src/config.ts @@ -3,7 +3,8 @@ import { config as configDotenv } from 'dotenv'; configDotenv(); export const config = { internal_port: parseInt(process.env.APP_PORT) || 4010, - development: process.env.NODE_ENV === "production" + development: process.env.NODE_ENV === "production", + version: process.env.VERSION || require('../package.json').version, } let errors = 0 if (typeof config.internal_port !== "number") {