From 276c85889cebfccf0e06da72054a26fcda1e886c Mon Sep 17 00:00:00 2001 From: joaquimpeixoto Date: Wed, 27 May 2026 16:01:23 +0100 Subject: [PATCH] docs: clarify sendfile dotfiles migration --- src/content/pages/en/guide/migrating-5.mdx | 2 ++ 1 file changed, 2 insertions(+) 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