@@ -198,7 +198,7 @@ export default class Server {
198198 ? requireFontManifest ( this . distDir , this . _isLikeServerless )
199199 : null ,
200200 optimizeImages : this . nextConfig . experimental . optimizeImages ,
201- defaultLocale : this . nextConfig . experimental . i18n ?. defaultLocale ,
201+ defaultLocale : this . nextConfig . i18n ?. defaultLocale ,
202202 }
203203
204204 // Only the `publicRuntimeConfig` key is exposed to the client side
@@ -298,8 +298,7 @@ export default class Server {
298298 parsedUrl . query = parseQs ( parsedUrl . query )
299299 }
300300
301- const { basePath } = this . nextConfig
302- const { i18n } = this . nextConfig . experimental
301+ const { basePath, i18n } = this . nextConfig
303302
304303 if ( basePath && req . url ?. startsWith ( basePath ) ) {
305304 // store original URL to allow checking if basePath was
@@ -577,7 +576,7 @@ export default class Server {
577576 // re-create page's pathname
578577 let pathname = `/${ params . path . join ( '/' ) } `
579578
580- const { i18n } = this . nextConfig . experimental
579+ const { i18n } = this . nextConfig
581580
582581 if ( i18n ) {
583582 const { host } = req ?. headers || { }
@@ -1213,7 +1212,7 @@ export default class Server {
12131212 const locale = query . __nextLocale as string
12141213 delete query . __nextLocale
12151214
1216- const { i18n } = this . nextConfig . experimental
1215+ const { i18n } = this . nextConfig
12171216 const locales = i18n . locales as string [ ]
12181217
12191218 let previewData : string | false | object | undefined
@@ -1243,7 +1242,7 @@ export default class Server {
12431242 )
12441243 }
12451244
1246- if ( this . nextConfig . experimental . i18n ) {
1245+ if ( this . nextConfig . i18n ) {
12471246 return normalizeLocalePath ( path , locales ) . pathname
12481247 }
12491248 return path
0 commit comments