File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
packages/runtime/src/helpers Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ export const generateNetlifyRoutes = ({
7474} ) => [ ...( withData ? toNetlifyRoute ( dataRoute ) : [ ] ) , ...toNetlifyRoute ( route ) ]
7575
7676export 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`
7878
7979// Default locale is served from root, not localized
8080export const localizeRoute = ( route : string , locale : string , defaultLocale : string ) =>
Original file line number Diff line number Diff line change @@ -658,6 +658,12 @@ Array [
658658 " status" : 200 ,
659659 " to" : " /.netlify/builders/_ipx" ,
660660 } ,
661+ Object {
662+ " force" : true ,
663+ " from" : " /_next/data/build-id/en.json" ,
664+ " status" : 200 ,
665+ " to" : " /.netlify/builders/___netlify-odb-handler" ,
666+ } ,
661667 Object {
662668 " force" : false ,
663669 " from" : " /_next/data/build-id/en/500.json" ,
@@ -844,12 +850,6 @@ Array [
844850 " status" : 200 ,
845851 " to" : " /.netlify/functions/___netlify-handler" ,
846852 } ,
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- } ,
853853 Object {
854854 " force" : false ,
855855 " from" : " /_next/data/build-id/en/layouts.json" ,
You can’t perform that action at this time.
0 commit comments