Commit 386ba597 by caoyanzhi

update: 调整devServer配置

parent a518031b
...@@ -39,8 +39,8 @@ const devWebpackConfig = merge(baseWebpackConfig, { ...@@ -39,8 +39,8 @@ const devWebpackConfig = merge(baseWebpackConfig, {
watchOptions: { watchOptions: {
poll: config.dev.poll poll: config.dev.poll
}, },
before(app, server) { before(app) {
app.get(/^(?!\/marketing).*$/, (req, res) => { app.get('/', (req, res) => {
res.redirect('/marketing/'); res.redirect('/marketing/');
}) })
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment