Wildcard routes can have the wrong priority order in @astrojs/netlify
_redirects config
#8121
Closed
1 task done
Labels
needs triage
Issue needs to be triaged
What version of
astro
are you using?2.10.9
Are you using an SSR adapter? If so, which one?
Netlify
What package manager are you using?
pnpm
What operating system are you using?
Mac
What browser are you using?
Firefox
Describe the Bug
Looks like there's a corner case in routing priority order, specifically with the sort order of wildcard routes when building for Netlify. This was introduced sometime after
@astrojs/netlify@2.1.3
, upgrading to latest ran into this bugWith the file structure below,
the build
dist/_redirects
file ends up with redirects in the wrong order (below)With this order, Netlify will match a request to
/themes
with the static/:slug
fallback instead of the more specific/themes/*
route.What's the expected result?
The redirects should be order should be flipped so that the
/themes/[...page]
takes priorityLink to Minimal Reproducible Example
na
Participation
The text was updated successfully, but these errors were encountered: