Skip to content

Commit

Permalink
fix(router-generator) use explicit routes export by default (#3109)
Browse files Browse the repository at this point in the history
Co-authored-by: Vladimir Panov <[email protected]>
  • Loading branch information
esjs and Vladimir Panov authored Jan 10, 2025
1 parent 8e1cda8 commit ab5a21b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async function getVirtualRouteConfigFromFileExport(
}

const virtualRouteConfig =
'default' in exports ? exports.default : exports.routes
'routes' in exports ? exports.routes : exports.default

return virtualRootRouteSchema.parse(virtualRouteConfig)
}
Expand Down

0 comments on commit ab5a21b

Please sign in to comment.