Skip to content

Instantly share code, notes, and snippets.

@nutch31
Created June 3, 2019 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nutch31/ce82146575debdde761ff85d9377441d to your computer and use it in GitHub Desktop.
Save nutch31/ce82146575debdde761ff85d9377441d to your computer and use it in GitHub Desktop.
module.exports = {
devServer: {
port: 4000,
proxy: {
/* Alpha Backend APIs */
"/api": {
target: "http://api.heroleads.com:8000/",
ws: true,
changeOrigin: true,
},
/* LeadService lead POST APIs */
"^/leadpost": {
target: "https://leadservice.heroleads.co.th",
pathRewrite: {
'^/leadpost': '/leadService/public/index.php/LandingPageCallService?mode=offline'
},
ws: true,
changeOrigin: true,
logLevel: 'debug'
}
},
headers: {
'Access-Control-Allow-Origin': '*'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment