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. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to make routing with exceptions , I want to put
routes/[slug].tsx
androutes/demo.tsx
on same level , but I see that it goest to[slug].tsx
first . How to make it work , like first it check static pagesabout, demo
etc , and then check dynamic[slug].tsx
?Beta Was this translation helpful? Give feedback.
All reactions