Open Fryuni opened 5 months ago
Please make it error not warning and fail the build or add option to make it error. If it happens it mean something is completely wrong and you can deploy unexpected thing.
Should also happen when it interferes with page that has no param like /c.astro
.
Astro Info
Describe the Bug
When two dynamic routes return parameters on
getStaticPaths
that result in the same URL the route with the lower priority according to the Routing Priority Order is silently ignored during build.On the linked example:
/[foo].astro
generates the URLs/a
,/b
and/c
/[bar].astro
generates the URLs/c
,/d
and/e
Those two routes get sorted with
/[bar].astro
before/[foo].astro
due to the alphabetical ordering rule. So/[bar].astro
generates its 3 routes and then/[foo].astro
generates just two of its routes with no other information provided to the developer:What's the expected result?
Ideally that should give at least a warning during the build.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-63iasx
Participation