rsnext/packages/next/next-server
JJ Kasper 65c22167c8
Ensure has segments are allowed in destination (#23588)
This ensures we gather segments from the experimental has field when validating segments used in the destination to prevent the invalid segments in the destination error from showing incorrectly. This usage has been added to the custom-routes test suite to ensure the segments are passed correctly from the has field. 

Fixes: https://github.com/vercel/next.js/issues/23415

## Bug

- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
2021-04-01 09:15:28 +00:00
..
lib Ensure has segments are allowed in destination (#23588) 2021-04-01 09:15:28 +00:00
server Mark this.router protected (#23573) 2021-03-31 11:37:44 -05:00