rsnext/test/integration/i18n-support
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
..
pages Do not add locale to link for api route and middleware preflight (#35994) 2022-04-11 15:59:07 +00:00
test Do not add locale to link for api route and middleware preflight (#35994) 2022-04-11 15:59:07 +00:00
next.config.js Fix external redirect with i18n domains (#27415) 2021-07-22 18:32:12 +00:00
server.js Add locale: false for custom-routes + i18n (#19164) 2020-11-14 03:35:42 +00:00