rsnext/test/integration/dynamic-routing
JJ Kasper f7df3fc158
Ensure prefetch heuristic matches with and without middleware (#39920)
This fixes the prefetching handling when middleware is present as currently we are incorrectly triggering data requests for non-SSG pages to handle the case where a middleware rewrite is present and pointing to an SSG path. Since the majority use case won't be rewriting in middleware and this incurs a lot of potentially heavy requests to `getServerSideProps` paths this matches the prefetch handling when middleware isn't present and only prefetches the data route when we match an SSG path. 

Fixes: [slack thread](https://vercel.slack.com/archives/C0289CGVAR2/p1661364670589519?thread_ts=1661199566.675759&cid=C0289CGVAR2)
Fixes: https://github.com/vercel/next.js/issues/38918

## Bug

- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`
2022-08-26 16:24:10 -05:00
..
pages Fix pageProps is missing when route changes (#38178) 2022-06-30 18:13:07 +00:00
public Fix public/ file name encoding (#10022) 2020-01-09 21:56:05 -05:00
static Fix static/ file name encoding (#11373) 2020-03-26 12:58:15 -04:00
test Ensure prefetch heuristic matches with and without middleware (#39920) 2022-08-26 16:24:10 -05:00