diff --git a/.github/workflows/buid.yaml b/.github/workflows/buid.yaml index fb62757b..f349f663 100644 --- a/.github/workflows/buid.yaml +++ b/.github/workflows/buid.yaml @@ -42,7 +42,7 @@ jobs: - name: Build run: | yarn install - yarn run build + yarn run build-with-args true - name: Compress run: | diff --git a/config/webpack.dev.js b/config/webpack.dev.js index d304bcba..f76f8f48 100644 --- a/config/webpack.dev.js +++ b/config/webpack.dev.js @@ -53,6 +53,14 @@ module.exports = (env = {}) => { }; devServer.proxy = { + '/apis/cluster': { + target: `https://${devIp}`, + secure: false, + changeOrigin: true, + pathRewrite: { + '^/apis/cluster/': '/cluster-proxy/', + }, + }, '/apis': { target: `https://${devIp}`, //9节点 172.20.151.92:8099 secure: false,