From befd4a035d0aff6ec30d1e9400e9f1794f7e09e5 Mon Sep 17 00:00:00 2001 From: GrantDuan Date: Thu, 21 Oct 2021 17:10:55 +0800 Subject: [PATCH] replace proxy with proapi.azurewebsites.net/ (#9214) https://proapi.azurewebsites.net/api/currentuser return the json data https://preview.pro.ant.design/api/currentuser return 404 page without this commit, logoin would fail if start the app by "npm run dev" --- config/proxy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/proxy.ts b/config/proxy.ts index d6c81ea7..5ef6a125 100644 --- a/config/proxy.ts +++ b/config/proxy.ts @@ -16,7 +16,7 @@ export default { }, test: { '/api/': { - target: 'https://preview.pro.ant.design', + target: 'https://proapi.azurewebsites.net', changeOrigin: true, pathRewrite: { '^': '' }, },