Skip to content

Conversation

@brendon9x
Copy link
Contributor

Configure Plug.Static with raise_on_missing_only: code_reloading?() to help developers catch missing entries in static_paths() during development. This prevents the common trap where files like favicon.svg return 404 because they aren't properly declared in the :only list (often because they digested paths).

Part of the fix for: #6203

Requires: elixir-plug/plug#1286

@josevalim
Copy link
Member

I think we don't raise on unknown options... which means we can pass this option even if Plug the version is not yet released. Let's see if CI agrees.

@brendon9x brendon9x force-pushed the static_plug_raise_on_missing branch from fcbf902 to 864b02c Compare September 27, 2025 21:08
Configure Plug.Static with raise_on_missing_only: code_reloading?() to help
developers catch missing entries in static_paths() during development. This
prevents the common trap where files like favicon.svg return 404 because they
aren't properly declared in the :only list (often because they digested paths).

Part of the fix for: phoenixframework#6203
@brendon9x brendon9x force-pushed the static_plug_raise_on_missing branch from 864b02c to a62435f Compare September 27, 2025 21:14
@josevalim josevalim merged commit 1cd6b71 into phoenixframework:main Sep 28, 2025
6 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@brendon9x brendon9x deleted the static_plug_raise_on_missing branch September 28, 2025 15:12
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