rsnext/test/integration/middleware
Naoyuki Kanezawa 93678b569b
Do not add locale to link for api route and middleware preflight (#35994)
Fixes https://github.com/vercel/next.js/issues/33578

This PR fixes `Link` component as well to not add locale for api routes since both preflight redirect and link should work the same.

Additionally, it fixes the webdriver method `browser.waitForCondition()` for playwright to not wrap with function string.

## Bug

- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`
2022-04-11 15:59:07 +00:00
..
core Do not add locale to link for api route and middleware preflight (#35994) 2022-04-11 15:59:07 +00:00
hmr fix problem with HMR when middleware and page reference the same node_module (#33873) 2022-02-01 21:46:07 +00:00
with-base-path fix(31013): add base path to preflight request url (#31101) 2021-11-09 19:03:05 +00:00
with-eval Update repo to use react 18 by default (#35888) 2022-04-05 21:51:47 +00:00
with-i18n Fix middleware i18n rewrites (#31174) 2021-11-09 01:28:39 +00:00
with-i18n-preflight fix: add locale prefix to middleware preflight url (#35911) 2022-04-07 11:39:49 +00:00