chore: upgrade to node 24 and read app version from workspace root
- base the docker image on node:24-slim and require node >=24 via engines in the root package.json - read app name and version from the workspace root package.json for config, swagger, startup log and mcp server info; drop the server workspace version - bind test http servers to 127.0.0.1 so tests pass in containers without ipv6 loopback - bump version to 1.19.1
This commit is contained in:
1 parent
d1e16f0386
commit
2afa07902e
13 files changed
+105
-20
No files matched your search
+2
-1
@@ -3,8 +3,8 @@ import { ConfigService } from "@nestjs/config";
|
||||
import { NestFactory } from "@nestjs/core";
|
||||
import type { NestExpressApplication } from "@nestjs/platform-express";
|
||||
import { DocumentBuilder, SwaggerModule } from "@nestjs/swagger";
|
||||
import { name as pkgName, version as pkgVersion } from "../package.json";
|
||||
import { AppModule } from "./app.module";
|
||||
import { appPackage } from "./common/app-package";
|
||||
import { configureBodyParsers } from "./common/body-parsers";
|
||||
import { TraceLogger } from "./common/trace-logger";
|
||||
import { AppConfig } from "./config/app.config";
|
||||
@@ -28,6 +28,7 @@ process.on("unhandledRejection", (reason) => {
|
||||
});
|
||||
|
||||
async function bootstrap() {
|
||||
const { name: pkgName, version: pkgVersion } = appPackage();
|
||||
const API_PREFIX = "api/v1";
|
||||
const logger = new TraceLogger("Bootstrap");
|
||||
const app = await NestFactory.create<NestExpressApplication>(AppModule, {
|
||||
|
||||
Reference in new issue
Block a user