Skip to content

Commit ab1c125

Browse files
committed
fix: Swagger API spec empty in production — use dist/src/routes for apis path
1 parent a328115 commit ab1c125

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,10 @@ Security is enforced **in the code** on the server: protected routes require a v
157157
},
158158
},
159159
},
160-
apis: isDev ? ["./src/routes/*.ts"] : ["./dist/routes/*.js"]
160+
// In production, compiled routes live at dist/src/routes/*.js (tsc preserves src/ under outDir)
161+
apis: isDev
162+
? [path.join(projectRoot, "src", "routes", "*.ts")]
163+
: [path.join(projectRoot, "dist", "src", "routes", "*.js")],
161164
};
162165

163166
// Update this to '.ts' as files are converted to TypeScript

0 commit comments

Comments
 (0)