File tree 2 files changed +7
-7
lines changed
packages/runtime/src/helpers
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ export const generateNetlifyRoutes = ({
74
74
} ) => [ ...( withData ? toNetlifyRoute ( dataRoute ) : [ ] ) , ...toNetlifyRoute ( route ) ]
75
75
76
76
export const routeToDataRoute = ( route : string , buildId : string , locale ?: string ) =>
77
- `/_next/data/${ buildId } ${ locale ? `/${ locale } ` : '' } ${ route === '/' ? ' /index' : route } .json`
77
+ `/_next/data/${ buildId } ${ locale ? `/${ locale } ` : '' } ${ route === '/' ? ( locale ? '' : ' /index') : route } .json`
78
78
79
79
// Default locale is served from root, not localized
80
80
export const localizeRoute = ( route : string , locale : string , defaultLocale : string ) =>
Original file line number Diff line number Diff line change @@ -658,6 +658,12 @@ Array [
658
658
" status" : 200 ,
659
659
" to" : " /.netlify/builders/_ipx" ,
660
660
} ,
661
+ Object {
662
+ " force" : true ,
663
+ " from" : " /_next/data/build-id/en.json" ,
664
+ " status" : 200 ,
665
+ " to" : " /.netlify/builders/___netlify-odb-handler" ,
666
+ } ,
661
667
Object {
662
668
" force" : false ,
663
669
" from" : " /_next/data/build-id/en/500.json" ,
@@ -844,12 +850,6 @@ Array [
844
850
" status" : 200 ,
845
851
" to" : " /.netlify/functions/___netlify-handler" ,
846
852
} ,
847
- Object {
848
- " force" : true ,
849
- " from" : " /_next/data/build-id/en/index.json" ,
850
- " status" : 200 ,
851
- " to" : " /.netlify/builders/___netlify-odb-handler" ,
852
- } ,
853
853
Object {
854
854
" force" : false ,
855
855
" from" : " /_next/data/build-id/en/layouts.json" ,
You can’t perform that action at this time.
0 commit comments