The problem of Agent after ant design pro Packaging

when not packaged, use this way to get the api data of the real server:

export default (noProxy? {
"GET / *": apiurl,
"POST / *": apiurl,
}: delay (proxy, 1000));

after run build is packaged, the dist directory is generated, and after I put the project in nginx.
neither the mock"s nor the real server"s api can receive it. How to get the api? of the server address?
has always been

I think some people say use nginx to match, but how to match it is the key

Aug.09,2021

just put the rules of your local agent on the nginx server. You find the rules of your local agent. Have the operator match it for you.
or write it yourself


encountered the same problem. Solve. Do you need to reconfigure nginx? Or?

Menu