- App Router: proxy rewrites and redirects keep Next's
basePath— targets were built withnew URL(path, req.url), which drops the base path that Next keeps insidereq.nextUrl, so withbasePath: '/nxt'innext.configevery locale redirect, and every rewrite inhideDefaultLocaleand'internal'mode, landed outside the app and 404'd. Targets are now built fromreq.nextUrl.clone(), which also preservestrailingSlash, and the referer-based cookie persistence strips the base path before looking for a locale. ThebasePathoption in the i18n config is unrelated: it is the route-folder prefix for mixed-router setups (app/app-router/[lng]/…). #2345 - App Router:
ssrBackendprop onI18nProvider— opt in to applying the backends fromuseduring the server render pass as well. Withi18nextOptions: { react: { useSuspense: true } }a namespace missing fromresourcessuspends into the nearest<Suspense>boundary and streams in, so only the namespaces a route renders need to be in the HTML and the rest load on demand without hydration mismatches. Only for timer-free backends such asi18next-resources-to-backendwith dynamic imports; the 16.0.11 reasoning still applies to http/locize backends. #2345