refactor(config): derive APP_NAME and APP_VERSION defaults from package.json

This commit is contained in:
2026-04-08 12:58:59 +03:00
parent 8e62ad8b4e
commit eeece70866
+4 -2
View File
@@ -1,5 +1,7 @@
import { IsInt, IsString, Min, Max } from 'class-validator';
import pkg from '../../package.json';
export class AppConfig {
@IsString()
NODE_ENV: string = 'development';
@@ -10,8 +12,8 @@ export class AppConfig {
PORT: number = 3000;
@IsString()
APP_NAME: string = 'liquio-qa-bot';
APP_NAME: string = pkg.name;
@IsString()
APP_VERSION: string = '1.0.0';
APP_VERSION: string = pkg.version;
}