diff --git a/lib/build.js b/lib/build.js index bc9e2b0..cd799b7 100644 --- a/lib/build.js +++ b/lib/build.js @@ -135,7 +135,7 @@ const getRoutes = async (App) => { : {} dynamicRoutes.push( Object.assign({}, route, subroute, { - props: Object.assign({}, route.props, pageProps) + props: Object.assign({}, route.props, subroute.props, pageProps) }) ) return