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
Add a built-in healthcheck route available at `/__health`. It responds with a 200 and no body. Also suppresses server logs for built-in routes like healthcheck and analytics.
Copy file name to clipboardExpand all lines: docs/framework/routes.md
+10-2
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,14 @@ By default, when a user hovers or focuses on the link for more than 100ms, a pre
102
102
103
103
You can extend dynamic routes to catch all paths by adding an ellipsis (...) inside the brackets. For example, `/routes/example/[...handle].server.jsx` will match `/example/a` and `/example/a/b`.
104
104
105
+
### Built-in routes
106
+
107
+
Hydrogen provides the following built-in routes:
108
+
109
+
-`/__health` - A health check route that responds with a 200 status and no body. You can use this route within your infrastructure to verify that your app is healthy and able to respond to requests.
110
+
-`/__rsc` - An internal route used to re-render server components. It's called by the Hydrogen frontend when the route changes, or when server props change. You should never need to manually request this route.
111
+
-`/__event` - An internal route used to save client observability events. You should never need to manually request this route.
112
+
105
113
### Example
106
114
107
115
The following example shows how to obtain catch all routes data using `location.pathname`:
@@ -240,8 +248,8 @@ export default function Page() {
240
248
241
249
Server components placed in the `src/routes` directory receive the following special props that you can use to create custom experiences:
0 commit comments