Skip to content

Instantly share code, notes, and snippets.

@dexterlabora
Created April 1, 2019 11:24
Show Gist options
  • Save dexterlabora/ffb1a0c54ee96c18fa7b0a566b260baf to your computer and use it in GitHub Desktop.
Save dexterlabora/ffb1a0c54ee96c18fa7b0a566b260baf to your computer and use it in GitHub Desktop.
Meraki API proxy config for VueJS with Webpack
module.exports = {
devServer: {
proxy: {
"/api/*": {
target: "https://api.meraki.com/api/v0",
secure: false,
changeOrigin: true,
pathRewrite: {
"^/api": ""
},
logLevel: "debug"
}
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment