Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/content/pages/en/guide/migrating-5.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ Or you can update your code manually:

The `hidden` and `from` options for `res.sendFile()` are no longer supported. Use `dotfiles` and `root` instead.

The `dotfiles` option applies to hidden directories in the path as well as hidden files. For example, a file served from a path like `/tmp/.mount/app/index.html` now requires `dotfiles: 'allow'`, even though `index.html` is not a dotfile.

#### How to update

```diff
Expand Down
Loading