rsnext/test
JJ Kasper 533c242094
Add middleware prefetching config (#42936)
This adds a new `experimental.middlewarePrefetch` config with two modes
with the default being the `flexible` config.

- `strict` only prefetches when the `href` explicitly matches an SSG
route (won't prefetch for middleware rewrite usage unless manual
`href`/`as` values are used)
- `flexible` always prefetches ensuring middleware rewrite usage is
handled and also prevents executing SSR routes during prefetch to avoid
unexpected invocations

x-ref: https://github.com/vercel/next.js/pull/39920
x-ref: [slack
thread](https://vercel.slack.com/archives/C047HMFN58X/p1668473101696689?thread_ts=1667856323.709179&cid=C047HMFN58X)

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the
feature request has been accepted for implementation before opening a
PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm build && pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
2022-11-17 13:22:36 -08:00
..
.stats-app Merge app internal chunk into main chunk for layouts (#41902) 2022-10-27 16:50:46 -07:00
__mocks__ Update Edge Runtime (#38862) 2022-07-21 18:29:19 +00:00
development test(dev): support to run test with --turbo (#41908) 2022-10-26 22:56:18 -07:00
e2e Add middleware prefetching config (#42936) 2022-11-17 13:22:36 -08:00
integration Add middleware prefetching config (#42936) 2022-11-17 13:22:36 -08:00
lib Add telemetry for @next/font (#42579) 2022-11-08 09:02:26 -08:00
production feat(jest): respect transpilePackages in tests (#42987) 2022-11-16 11:55:06 -08:00
unit @next/font/google variable fonts without weight range (#43036) 2022-11-17 08:52:19 -08:00
.gitignore Fix server html insertion target (#42591) 2022-11-07 18:16:13 +01:00
jest-setup-after-env.ts Adds tests to ensure eslint-plugin-next's available rules are properly exported and recommended rules are correctly defined. (#38183) 2022-06-30 11:31:33 -05:00
jest.d.ts Adds tests to ensure eslint-plugin-next's available rules are properly exported and recommended rules are correctly defined. (#38183) 2022-06-30 11:31:33 -05:00
readme.md refactor: split up CONTRIBUTING.md (#40515) 2022-09-16 14:54:58 -07:00
test-file.txt Add additional file serving tests (#12479) 2020-05-04 11:58:19 -05:00

See Testing for more information on how you can run/write/debug tests for Next.js.