Skip to content

fix: pass dotfiles option to serve-static#4

Merged
Julien-R44 merged 2 commits into2.xfrom
fix/allow-dotfiles
Mar 15, 2026
Merged

fix: pass dotfiles option to serve-static#4
Julien-R44 merged 2 commits into2.xfrom
fix/allow-dotfiles

Conversation

@Julien-R44
Copy link
Member

Close #3

Map dotFiles ( camelCase) to dotfiles (lowercase) expected by serve-static/send

the casing mismatch has always been there => dotFiles was never actually passed to serve-static , which expects dotfiles

but nobody noticed because send v0.x (used by serve-static v1) had a legacy fallback: when dotfiles was undefined, it would still allow requests to files nested inside dotfile directories (like /.well-known/stuff) , only blocking direct dotfiles (like /.env). so the .well-known use case worked by accident

with the bump to serve-static v2 / send v1, that legacy fallback was removed. now when dotfiles is undefined, it defaults to 'ignore' for everything including dotfile directories

@Julien-R44 Julien-R44 merged commit 5db6b53 into 2.x Mar 15, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dotFiles: 'allow' is broken after Adonis V7 upgrade

1 participant