From ab1c125b0a38d353402005b04814829ccad18776 Mon Sep 17 00:00:00 2001 From: Avom Brice Date: Mon, 9 Feb 2026 05:07:06 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20Swagger=20API=20spec=20empty=20in=20prod?= =?UTF-8?q?uction=20=E2=80=94=20use=20dist/src/routes=20for=20apis=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app.ts b/app.ts index 38fc0f9..8a70a08 100644 --- a/app.ts +++ b/app.ts @@ -157,7 +157,10 @@ Security is enforced **in the code** on the server: protected routes require a v }, }, }, - apis: isDev ? ["./src/routes/*.ts"] : ["./dist/routes/*.js"] + // In production, compiled routes live at dist/src/routes/*.js (tsc preserves src/ under outDir) + apis: isDev + ? [path.join(projectRoot, "src", "routes", "*.ts")] + : [path.join(projectRoot, "dist", "src", "routes", "*.js")], }; // Update this to '.ts' as files are converted to TypeScript