首页 > 解决方案 > 通过 ng build 构建代码后代理配置不起作用

问题描述

代理配置在本地环境中运行良好

"/api/*": {
      "target": "http://10.71.9.82:8080",
      "secure": false,
      "changeOrigin": true,
      "logLevel": "debug",
      "pathRewrite": {"^/api" : ""}
  }

但是在 tomcat 中构建和部署 dist 文件夹后,它不起作用如何为代理配置 tomcat?

标签: angular

解决方案


推荐阅读