Skip to content

Commit

Permalink
fix: remove dev proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Oct 27, 2022
1 parent 25d026a commit 2484061
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions config/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2484061

Please sign in to comment.