You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 10, 2021. It is now read-only.
The change #145 "revert route/redirect sorting logic to static then dynamic" causes the _redirects file to be sorted wrong when using an optional catch all route and dynamic paths.
How to reproduce
This problem happens when we have the following routes:
The data routes /_next/data are split into two groups. /_next/data/tveFS5JTA64mmnqiHIWfA/* /.netlify/functions/next_any 200 catches any data route, but /_next/data/tveFS5JTA64mmnqiHIWfA/:bar/test.json /.netlify/functions/next_bar_test 200 is below this redirect. This causes our application to fail to load data when the user does a client side transition.
Uh oh!
There was an error while loading. Please reload this page.
The change #145 "revert route/redirect sorting logic to static then dynamic" causes the
_redirects
file to be sorted wrong when using an optional catch all route and dynamic paths.How to reproduce
This problem happens when we have the following routes:
Clone https://github.com/amuttsch/non-routes
Execute the following command
Problem
The resulting
_redirects
file looks like this on version^2.8.3
The data routes
/_next/data
are split into two groups./_next/data/tveFS5JTA64mmnqiHIWfA/* /.netlify/functions/next_any 200
catches any data route, but/_next/data/tveFS5JTA64mmnqiHIWfA/:bar/test.json /.netlify/functions/next_bar_test 200
is below this redirect. This causes our application to fail to load data when the user does a client side transition.Expected
Previous to
2.8.3
the file looks like this:Workaround: Downgrade
next-on-netlify
to2.8.2
.The text was updated successfully, but these errors were encountered: