42385f48db
This ensures i81n custom routes are resolving correctly, it also corrects redirects for default locales when `locale: false` is not used, and this also simplifies the resolving for custom routes with i18n in `next-server` adding types for the i18n config. This also adds additional tests to prevent regression and starts leveraging a shared `NextConfig` type to allow us to share types for config values. Fixes: https://github.com/vercel/next.js/issues/19521 Fixes: https://github.com/vercel/next.js/issues/19403 Fixes: https://github.com/vercel/next.js/issues/19302 Fixes: https://github.com/vercel/next.js/issues/19227 |
||
---|---|---|
.. | ||
escape-path-delimiters.ts | ||
format-url.ts | ||
get-asset-path-from-route.ts | ||
get-route-from-asset-path.ts | ||
index.ts | ||
is-dynamic.ts | ||
parse-relative-url.ts | ||
path-match.ts | ||
prepare-destination.ts | ||
querystring.ts | ||
resolve-rewrites.ts | ||
route-matcher.ts | ||
route-regex.ts | ||
sorted-routes.ts |