Skip to content

Conversation

@abravalheri
Copy link

Thank you very much for the awesome project.

I wanted to add some static files to the Phoenix server (my original goal was to include JPEG and PNG images). After trying for a while, I realised I would need to copy a lot of code and basically recreate what PhoenixPlayground.Router.LiveRouter already does, instead of just using it.

I was wondering if the project would be open to this PR, whose main intention is to simplify how static files can be added. While working on it, I noticed that using :plug and :live together did not behave as expected. So, I’m proposing changes to PhoenixPlayground.Router to allow both options to be passed and work in tandem.

I hope this change is useful to the project. Please let me know your thoughts.

@abravalheri abravalheri marked this pull request as ready for review November 16, 2025 19:20
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.

1 participant