It needs to have api prefix otherwise nginx won't even route it to the backend

This commit is contained in:
Fang-Pen Lin
2025-11-20 08:57:12 -08:00
parent ea8de6e2fc
commit f23884ab12
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -2702,7 +2702,7 @@ export const registerRoutes = async (
// Note: This is a special route for BDD tests. It's only available in development mode and only for BDD tests.
// This route should NEVER BE ENABLED IN PRODUCTION!
if (getConfig().isBddNockApiEnabled) {
await server.register(registerBddNockRouter, { prefix: "/bdd-nock" });
await server.register(registerBddNockRouter, { prefix: "/api/__bdd_nock__" });
}
server.addHook("onClose", async () => {