diff --git a/build.fsx b/build.fsx index edcd9720..3cef2685 100644 --- a/build.fsx +++ b/build.fsx @@ -40,13 +40,13 @@ Target.create "BuildWebPackConfig" (fun _ -> let 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 }