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: content/recipes/serve-static.md
+1
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,7 @@ You can set the path to render your static app, specify excluded paths, enable o
43
43
> warning **Notice** The default `renderPath` of the Static App is `*` (all paths), and the module will send "index.html" files in response.
44
44
> It lets you create Client-Side routing for your SPA. Paths, specified in your controllers will fallback to the server.
45
45
> You can change this behavior setting `serveRoot`, `renderPath` combining them with other options.
46
+
> Additionally, the option `serveStaticOptions.fallthrough` has been implemented in the Fastify adapter to mimic Express's fallthrough behavior and needs to be set to `true` to send `index.html` instead of a 404 error for non existing route.
0 commit comments