Proxy agent for antd-design-pro

  • Framework: antd-design-pro
  • configuration file: .webparkrc.js

clipboard.png

  • : services/api.js

clipboard.png

  • : fetchlocalhost

clipboard.png

.webpackrc

  • ---

npm start run:no-proxy

clipboard.png

how to solve this problem?

Sep.24,2021

run npm start run:no-proxy


antd pro closes the browser page and reopens it to ok. This is due to the cache pit. Note the following code in request.js

//.then(response => cachedSave(response, hashcode))
//cachedSave

I also encountered the same problem
how do you solve it


I would like to ask you how to achieve this kind of proxy why it is not easy to use ah, I think the document is written like this, please point out
clipboard.png


you only need to configure the proxy attribute in config.js. As long as proxy and mock url are different

Menu