diff --git a/config/paths.js b/config/paths.js index fa4db86..e1e0201 100644 --- a/config/paths.js +++ b/config/paths.js @@ -15,7 +15,6 @@ module.exports = { appBuild: resolveApp("build"), appIndexJs: resolveApp("src/homepage/index.js"), appServerSideRenderingIndexJs: resolveApp("src/homepage/server.js"), - appRouteData: resolveApp("src/homepage/routeData.js"), appPackageJson: resolveApp("package.json"), appSrc: resolveApp("src"), yarnLockFile: resolveApp("yarn.lock"), diff --git a/config/webpack.config.web.js b/config/webpack.config.web.js index f159712..e5a6198 100644 --- a/config/webpack.config.web.js +++ b/config/webpack.config.web.js @@ -221,8 +221,9 @@ function plugins(mode /*: "development" | "production" */) { const basePlugins = [ new StaticSiteGeneratorPlugin({ entry: "ssr", - // $ExpectFlowError(dynamic require) - paths: require(paths.appRouteData).routeData.map(({path}) => path), + paths: require("../src/homepage/routeData").routeData.map( + ({path}) => path + ), locals: {}, }), new CopyPlugin([{from: paths.favicon, to: "favicon.png"}]),