File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
packages/open-next/src/core/routing Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 3030 },
3131 "complexity" : {
3232 "noForEach" : " off" ,
33- "noBannedTypes" : " warn" ,
34- "useOptionalChain" : " warn"
33+ "noBannedTypes" : " warn"
3534 },
3635 "performance" : {
3736 "noDelete" : " warn" ,
Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ export function handleFallbackFalse(
380380 } ) ;
381381 const locales = NextConfig . i18n ?. locales ;
382382 const routesAlreadyHaveLocale =
383- ( locales !== undefined && locales . includes ( rawPath . split ( "/" ) [ 1 ] ) ) ||
383+ locales ? .includes ( rawPath . split ( "/" ) [ 1 ] ) ||
384384 // If we don't use locales, we don't need to add the default locale
385385 locales === undefined ;
386386 const localizedPath = routesAlreadyHaveLocale
You can’t perform that action at this time.
0 commit comments