From ee8b06b9aac33cb710edb769bd9fe7bac3fef3fe Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Fri, 18 Mar 2022 17:02:56 +0800 Subject: [PATCH] chore: delete proxy --- docs/.vuepress/config.js | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 5e18cbba8..6dc619b61 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -64,29 +64,6 @@ const config = { .plugin('normallize-link') .use(require('./markdown/normallizeLink')) } - }, - chainWebpack: (config, isServer) => { - console.log('config :>> ', config); - config.devServer.proxy({ - '/ext': { - target: 'http://localhost:3000', // 后台api - changeOrigin: true, //是否跨域 - secure: false, - // secure: true, - pathRewrite: { - '^/ext': '' //需要rewrite的, - } - }, - '/ask': { - target: 'https://ask.dcloud.net.cn', // 后台api - changeOrigin: true, //是否跨域 - secure: false, - // secure: true, - pathRewrite: { - '^/ask': '' //需要rewrite的, - } - } - }) } } -- GitLab