rsnext/packages/next/server/web
Steven eb0bd63af4
Fix basePath replacing server-side and normalizeLocalePath() when path is empty string (#30978)
This fixes our `basePath` detection/replacing server-side as we were incorrectly considering `/docss` a match for a `basePath` of `/docs` which caused us to have an unexpected value in the `normalizeLocalePath` function. 

- Fixes #22429
- Regression introduced in #17757 
- Fixes: https://github.com/vercel/next.js/issues/31423

Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
2021-11-15 17:33:21 +00:00
..
sandbox fix(middleware): fetch resource may be a URL instance (or any stringifiable value) (#31260) 2021-11-12 13:22:27 +00:00
spec-compliant Fix TS error 2021-10-26 10:29:17 -05:00
spec-extension Improve deprecation errors for new middleware API (#30316) 2021-10-26 17:03:39 +02:00
adapter.ts Improve deprecation errors for new middleware API (#30316) 2021-10-26 17:03:39 +02:00
error.ts Improve deprecation errors for new middleware API (#30316) 2021-10-26 17:03:39 +02:00
form-data.ts Implement Middleware RFC (#30081) 2021-10-20 17:52:11 +00:00
is.ts Implement Middleware RFC (#30081) 2021-10-20 17:52:11 +00:00
next-url.ts Fix basePath replacing server-side and normalizeLocalePath() when path is empty string (#30978) 2021-11-15 17:33:21 +00:00
render.ts Add new target for middleware (#30299) 2021-10-26 18:50:56 +02:00
types.ts New Middleware API signature (#30282) 2021-10-25 18:59:41 -04:00
utils.ts Split Set-Cookie header correctly (#30560) 2021-10-28 17:46:58 +00:00