Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs(app): point the SPA fallback comment at configure-app.ts
Yudhi Armyndharisc15efd0ec270
diff --git a/src/app.module.ts b/src/app.module.tsindex 8086b4c97..29fbcc1ae 100644--- a/src/app.module.ts+++ b/src/app.module.ts@@ -99,7 +99,7 @@ if (dashboardServingEnabled && dashboardBuildPresent) {// Let Nest own these so unknown API/socket routes return real 404s/JSON rather// than the SPA index.html fallback (Express 5 / path-to-regexp v8 wildcard syntax).exclude: ['/api/{*splat}', '/socket.io/{*splat}', '/mcp', '/mcp/{*splat}'],- // Disable this module's OWN catch-all SPA fallback. main.ts already serves dashboard+ // Disable this module's OWN catch-all SPA fallback. configure-app.ts already serves dashboard// documents (it injects the per-response CSP nonce, which is why it must own them), and// that handler is correctly narrow: it skips /assets and only answers extensionless paths// or explicit text/html navigations. The built-in fallback here is not narrow — it answers