rsnext/packages/next/shared/lib/i18n
Javi Velasco 523704b83f
Execute middleware on Next.js internal requests (#37121)
* Do not exclude internal _next request in middleware

* Allow for `NextURL` to parse prefetch requests

* Add test for middleware data prefetch

* Refactor `hasBasePath` and `replaceBasePath`

* Refactor `removeTrailingSlash`

* Refactor parsed next url to use `getNextPathnameInfo`

* Allow to configure `NextURL`

* Ensure middleware rewrites with always with a locale

Co-authored-by: JJ Kasper <jj@jjsweb.site>
2022-05-27 13:29:04 -05:00
..
detect-domain-locale.ts Refactor i18n checks on request handling (#27328) 2021-07-21 16:12:33 +00:00
detect-locale-cookie.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
get-locale-redirect.ts Execute middleware on Next.js internal requests (#37121) 2022-05-27 13:29:04 -05:00
normalize-locale-path.ts Fix basePath replacing server-side and normalizeLocalePath() when path is empty string (#30978) 2021-11-15 17:33:21 +00:00