diff --git a/razzle.config.js b/razzle.config.js index 5f1d75f251a..109b91c3b80 100644 --- a/razzle.config.js +++ b/razzle.config.js @@ -352,7 +352,7 @@ const defaultModify = ({ if (prefixPath) { if (target === 'web' && dev) { - config.devServer.publicPath = prefixPath; + config.devServer.devMiddleware.publicPath = prefixPath; } const pp = config.output.publicPath; config.output.publicPath = `${pp}${prefixPath.slice(1)}/`;