Skip to content

Commit e6ee263

Browse files
Merge pull request #3209 from SteadEXE/master
docs(recipes): update ServeStaticModule documentation to reflect recent change on implementation with fastify adapter
2 parents 22e2a63 + d27ff6e commit e6ee263

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

content/recipes/serve-static.md

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ You can set the path to render your static app, specify excluded paths, enable o
4343
> warning **Notice** The default `renderPath` of the Static App is `*` (all paths), and the module will send "index.html" files in response.
4444
> It lets you create Client-Side routing for your SPA. Paths, specified in your controllers will fallback to the server.
4545
> 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.
4647
4748
#### Example
4849

0 commit comments

Comments
 (0)