Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading