Webpack configuration

as shown in the figure, the development environment is configured with forwarding

but after packaging, there is no
whether the code in the production environment can be forwarded

.

now the URL in the production environment defaults to the access address of the static page


it is written here that devserver takes effect only in the development environment, but not in the production environment. You need to write a separate prefix in the corresponding production environment, which is usually forwarded through NGINX

.
Menu