Skip to content

Instantly share code, notes, and snippets.

@jmrobles
Created October 25, 2020 18:41
Show Gist options
  • Save jmrobles/4907b599dcec5d9a44b638b59b6eecb3 to your computer and use it in GitHub Desktop.
Save jmrobles/4907b599dcec5d9a44b638b59b6eecb3 to your computer and use it in GitHub Desktop.
const PROXY_CONFIG = {
"/api": {
"target": "http://my-backend.com",
"changeOrigin": true,
"secure": false,
"logLevel": "debug",
"pathRewrite": {
"^/api": "/api-dev"
},
"cookiePathRewrite": {
"/api-dev": "/api"
}
}
};
module.exports = PROXY_CONFIG;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment