Created
June 3, 2019 14:45
-
-
Save nutch31/ce82146575debdde761ff85d9377441d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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