Skip to content

Conversation

@brendon9x
Copy link
Contributor

Add development-time validation to catch files that exist but aren't declared in the :only list. When enabled, raises MissingPathInOnlyFilterError with helpful guidance to either add the file to :only or use :only_matching for prefix-based matching.

This prevents silent 404s when developers add static files (like favicon.svg) but forget to update the static file configuration, which is a common trap especially for digested files.

Part of the fix for: phoenixframework/phoenix#6203

Add development-time validation to catch files that exist but aren't
declared in the :only list. When enabled, raises MissingPathInOnlyFilterError
with helpful guidance to either add the file to :only or use :only_matching
for prefix-based matching.

This prevents silent 404s when developers add static files (like favicon.svg)
but forget to update the static file configuration, which is a common trap
especially for digested files.

Part of the fix for: phoenixframework/phoenix#6203
@josevalim josevalim merged commit 33644c2 into elixir-plug:main Sep 28, 2025
2 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@brendon9x brendon9x deleted the add_raise_on_missing_only branch September 28, 2025 15:13
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.

2 participants