From 24840617ec7a9016bf962f4c1fc092d64427c9b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=9F=E8=B4=A4?= Date: Thu, 27 Oct 2022 14:01:35 +0800 Subject: [PATCH] fix: remove dev proxy --- config/proxy.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/config/proxy.ts b/config/proxy.ts index 170e55d9..59e3d82e 100644 --- a/config/proxy.ts +++ b/config/proxy.ts @@ -10,21 +10,13 @@ * @doc https://umijs.org/docs/guides/proxy */ export default { - dev: { - // localhost:8000/api/** -> https://preview.pro.ant.design/api/** - '/api/': { - // 要代理的地址 - target: 'https://preview.pro.ant.design', - // 配置了这个可以从 http 代理到 https - // 依赖 origin 的功能可能需要这个,比如 cookie - changeOrigin: true, - }, - }, + dev: {}, /** * @name 详细的代理配置 * @doc https://github.com/chimurai/http-proxy-middleware */ test: { + // localhost:8000/api/** -> https://preview.pro.ant.design/api/** '/api/': { target: 'https://proapi.azurewebsites.net', changeOrigin: true,