-
Notifications
You must be signed in to change notification settings - Fork 666
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
add dev checks for plugin route conflicts #1558
Comments
count me in! 💪 |
On point 1: When starting out I got caught out a lot with routes conflicts when having dynamic routes at the same directory level as named routes... plugin authors might make the same mistake. Also it would be good to validate this for routes in general (if this doesn't happen already). Or at minimum the docs here could do with a note about this gotcha: https://fresh.deno.dev/docs/concepts/routing |
was finally able to pick this up: however as mentioned by @thegaryroberts i'd invest some time in checking dynamic route conflicts. |
as expected the checks were also applicable for plugins ootb. |
I must admit I haven't checked whether what I've done for 1414 covers routes added by plugins. But as I'm reading it over, I guess the approach would work, since it checks after routes have been loaded. How do you want to proceed? |
if you don't mind, i'd migrate #1414's changes into #1568 to bundle all of the dev checks under one umbrella pr. thus the warning would always contain for now i'd also set #1568 back to a draft state. |
sounds like a plan! thank you! |
And don't forget to get 539 closed as well! |
We should add two checks here:
from: #1545 (comment)
@mbhrznr, any interest in picking this up? 🤞
The text was updated successfully, but these errors were encountered: