From af9e1e1d80ef9b2f0c9b341d3c66def931000e0f Mon Sep 17 00:00:00 2001 From: Anurag Sahu Date: Sat, 27 Dec 2025 21:01:05 +0530 Subject: [PATCH] fix: swagger docs for production --- src/swagger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/swagger.ts b/src/swagger.ts index 9ed2055..a86f957 100644 --- a/src/swagger.ts +++ b/src/swagger.ts @@ -5,7 +5,7 @@ import { config } from "./config/config"; import path from "node:path"; const isProduction = config.server.nodeEnv === "production"; -const basePath = isProduction ? path.join(__dirname, "./routes/*.ts") : path.join(__dirname, "./routes/*.js"); +const basePath = isProduction ? path.join(__dirname, "./routes/*.js") : path.join(__dirname, "./routes/*.ts"); const options: swaggerJsdoc.Options = { definition: {