diff --git a/src/server/middleware.js b/src/server/middleware.js index 87cf843fa745..f8ef41c85672 100644 --- a/src/server/middleware.js +++ b/src/server/middleware.js @@ -34,8 +34,8 @@ export default function (configDir) { res.send(getIndexHtml(publicPath)); }); - const headHtml = getHeadHtml(configDir); router.get('/iframe.html', function (req, res) { + const headHtml = getHeadHtml(configDir); res.send(getIframeHtml(headHtml, publicPath)); });