Dynamic and static path on same level #2221
Closed
andriiradkevych
started this conversation in
General
Replies: 1 comment
|
That's the way Fresh already works. It sorts routes by specificity. Static routes are matched first before dynamic ones. If you ever encounter a scenario where this is not the case, that would be a bug. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is it possible to make routing with exceptions , I want to put
routes/[slug].tsxandroutes/demo.tsxon same level , but I see that it goest to[slug].tsxfirst . How to make it work , like first it check static pagesabout, demoetc , and then check dynamic[slug].tsx?All reactions