Skip to content
Snippets Groups Projects
Commit 101d568b authored by Ian Galpin's avatar Ian Galpin
Browse files

Added redirect for '/api' to webapp dev-server

parent 55057be4
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,11 @@ const config: webpack.Configuration = {
compress: true,
port: 4000,
// Allow SPA urls to work with dev-server
historyApiFallback: true
historyApiFallback: true,
proxy: {
'/api': 'http://127.0.0.1:5000'
}
},
plugins: [
new ForkTsCheckerWebpackPlugin({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment