diff --git a/src/content/pages/en/guide/migrating-5.mdx b/src/content/pages/en/guide/migrating-5.mdx index b93cec072c..c0a9581869 100644 --- a/src/content/pages/en/guide/migrating-5.mdx +++ b/src/content/pages/en/guide/migrating-5.mdx @@ -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