Skip to content

Commit

Permalink
Merge pull request #364 from olivercoad/v2_minimal-devServerProxy-con…
Browse files Browse the repository at this point in the history
…text

Fix devServerProxy context paths in V2 minimal
  • Loading branch information
theimowski authored Jun 1, 2020
2 parents 53e1c1e + 4811175 commit 2f442ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Content/src/Client/webpack.default.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ var CONFIG = {
// When using webpack-dev-server, you may need to redirect some calls
// to a external API server. See https://webpack.js.org/configuration/dev-server/#devserver-proxy
devServerProxy: {
// redirect requests that start with /api/* to the server on port 8085
'/api/*': {
// redirect requests that start with /api/ to the server on port 8085
'/api/**': {
target: 'http://localhost:' + (process.env.SERVER_PROXY_PORT || "8085"),
changeOrigin: true
},
// redirect websocket requests that start with /socket/* to the server on the port 8085
'/socket/*': {
// redirect websocket requests that start with /socket/ to the server on the port 8085
'/socket/**': {
target: 'http://localhost:' + (process.env.SERVER_PROXY_PORT || "8085"),
ws: true
}
Expand Down

0 comments on commit 2f442ab

Please sign in to comment.