diff --git a/webpack/webpack.common.js b/webpack/webpack.common.js index 9c065c333..b01e4221c 100644 --- a/webpack/webpack.common.js +++ b/webpack/webpack.common.js @@ -103,9 +103,12 @@ module.exports = { }, compress: true, port: 8999, - proxy: { - '/api': 'http://localhost:9000', - }, + proxy: [ + { + context: ['/api'], + target: 'http://localhost:9000', + }, + ], open: true, devMiddleware: { writeToDisk: true,