From 01df2453d7385384cc7459d12536ba5b71aac87f Mon Sep 17 00:00:00 2001 From: WangDL Date: Mon, 18 May 2026 15:29:36 +0800 Subject: [PATCH] fix: add global /api prefix to match nginx proxy; exclude health endpoint Co-Authored-By: Claude Opus 4.7 --- src/main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.ts b/src/main.ts index 6447e45..7f9f1c1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -12,6 +12,8 @@ async function bootstrap() { app.use(helmet()); + app.setGlobalPrefix('api', { exclude: ['health'] }); + app.enableCors({ origin: isProduction ? [configService.get('app.allowedOrigin', 'https://longde.cloud')]