From eeece7086692849068b6d6026c652c860c513766 Mon Sep 17 00:00:00 2001 From: Andrii Arsenin Date: Wed, 8 Apr 2026 12:58:59 +0300 Subject: [PATCH] refactor(config): derive APP_NAME and APP_VERSION defaults from package.json --- src/config/app.config.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/config/app.config.ts b/src/config/app.config.ts index c244a59..32969c9 100644 --- a/src/config/app.config.ts +++ b/src/config/app.config.ts @@ -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; }