Created
September 15, 2017 13:18
-
-
Save devhero/100332ea65de2163bbb9d9bdc8431e03 to your computer and use it in GitHub Desktop.
webpack proxy
This file contains 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: { | |
proxy: { | |
'/api': { | |
target: 'https://other-server.example.com', | |
pathRewrite: {'^/api' : ''} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment