Guys, why is there a conflict in my configuration of proxyTable? the first one below will conflict with the third one. Solve the problem.

proxyTable: {

     "/api":{
        target: "https://app.hsltm.com",
        changeOrigin: true,
        pathRewrite: {
            "^/api": "/api"
        }
    },
    "/ssm-api": {
      target: "https://appdb.hsltm.com",
      changeOrigin: true,
      pathRewrite: {
        "^/ssm-api": "/ssm-api"
      }
    },
  "/api-web": {
    target: "https://appdb.hsltm.com",
    changeOrigin: true,
    pathRewrite: {
      "^/api-web": "/api-web"
    }
  }
},

proxyTable
-----------------------
  "/api-web": {
    target: "https://appdb.hsltm.com",
    changeOrigin: true,
    pathRewrite: {
      "^/api-web": "/api-web"
    }
  }
  404
  -------------------------
  
  
   "/api":{
        target: "https://app.hsltm.com",
        changeOrigin: true,
        pathRewrite: {
            "^/api": "/api"
        }
    },
    
    --------------------------------------
Jul.12,2021

this is a conflict. It all starts with / api. Learn about it here: https://vuejs-templates.githu.

.
Menu