You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: get-started/troubleshooting.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -626,8 +626,7 @@ Now you can build the archive with:
626
626
mbt build -t gen --mtar mta.tar -e less.mtaext
627
627
```
628
628
629
-
::: warning
630
-
This approach is only recommended
629
+
::: warning Not recommended for production deployments
631
630
- For test deployments during _development_. For _production_ deployments, self-contained archives are preferrable.
632
631
- If all your dependencies are available in _public_ registries like npmjs.org or Maven Central. Dependencies from _corporate_ registries are not resolvable in this mode.
633
632
:::
@@ -768,7 +767,16 @@ If you receive an error response `404 Not Found: Requested route ('<route>') doe
768
767
769
768
:::
770
769
770
+
### Why do I get a _404 Cannot GET /_ error?
771
771
772
+
For security reasons, the **index page is not served in production** by default in both [Node.js](../node.js/cds-server#toggle-generic-index-page) and [Java](../java/developing-applications/configuring#production-profile).
773
+
774
+
If you try to access your backend URL, you will therefore see a _404 Cannot GET /_ error.
775
+
This also means you **cannot use the `/` path as a health status indicator**. See the [Health Checks guide](../guides/deployment/health-checks) for the correct paths.
776
+
777
+
Only if absolutely required and you understand the security implications to your application, you can enable this page in your deployment.
778
+
779
+
Learn more about the generic index page in [Java](../java/developing-applications/properties#cds-indexPage) and in [Node.js](../node.js/cds-server#toggle-generic-index-page).{.learn-more}
0 commit comments