Skip to content

Commit a544e8f

Browse files
committed
chore: update serve static documentation to reflect recent change about fastify implementation
1 parent 22e2a63 commit a544e8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

content/recipes/serve-static.md

Lines changed: 1 addition & 0 deletions
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 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)