diff --git a/apps/server/src/main.ts b/apps/server/src/main.ts index f2b0703..2095980 100644 --- a/apps/server/src/main.ts +++ b/apps/server/src/main.ts @@ -5,7 +5,15 @@ import { ConfigService } from '@nestjs/config'; import { json, urlencoded } from 'express'; import { NestExpressApplication } from '@nestjs/platform-express'; import { ConfigurationType } from './configuration'; -import { join } from 'path'; +import { join, resolve } from 'path'; +import { readFileSync } from 'fs'; + +const packageJson = JSON.parse( + readFileSync(resolve(__dirname, '..', './package.json'), 'utf-8'), +); + +const appVersion = packageJson.version; +console.log('appVersion: v' + appVersion); async function bootstrap() { const app = await NestFactory.create(AppModule);