How to access the proxy path in proxyTable after the vue project is packaged

after packaging the vue2.0 project, it is found that the agents in the original proxyTable are no longer accessible.
after looking at the information on the Internet, I understand that proxyTable can only be used in the development environment, and the production environment cannot be used.
so how can I use the proxy path in proxyTable in the production environment?
after checking on the Internet, it is said that you need to use Nginx,. Is that so? How to configure it? Is it configured at the front end? Is there a specific step? Ask the great god for advice.

Oct.27,2021

proxy the proxy configured is limited to the local service running, that is, the local development environment!
production environment backend CORS , operation and maintenance to configure Nginx and so on can solve
Nginx configuration example:
   ...  //  
   location /a/ { 
       proxy_pass http://192.1.1.27/b/; 
   }
   ... 

request http://192.1.1.27/b/ that is, http://192.1.1.27/a/

Menu