-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: make Router.reachable/2 less strict #698
Conversation
Allow root paths / to coexist and start beacon sites even if there's a conflict to allow nested beacon pages as /:page to be served, even in the presence of another live / route
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could it be a problem if someone defines
live "/:page"
beacon_site "/"
?
The site wouldn't boot in that scenario 35b157b |
@APB9785 merging this one now because I need that code :D |
This PR fixed my issue where a site would not boot because it was not first in the router, but it may have introduced a new problem. When viewing pages built with Beacon, images only load sometimes. Below is a screen recording of refreshing the media library page. Screen.Recording.2024-12-11.at.10.27.02.AM.mov |
Allow root paths / to coexist and start beacon sites even if there's a conflict to allow nested beacon pages as /:page to be served, even in the presence of another live / route.
This change will potentially cause more sites to be started but being to restrictive is a breaking change either, so we're partially reverting to v0.2 behavior.