---
title: "Comment by Diddles Code on \"How to Setup Proxy in React with http-proxy-middleware\" | Hashnode"
description: "does this work when you deploy to production? if yes, are there any changes to be done. I have tried this but when deploying to production, api calls are not be"
url: "https://hashnode.com/posts/how-to-setup-proxy-in-react-with-http-proxy-middleware/625ae43f2f84e0d4fc33d2d3/comment/6454f87757546b122cde66bb"
---

[Discussion](https://hashnode.com/posts/how-to-setup-proxy-in-react-with-http-proxy-middleware/625ae43f2f84e0d4fc33d2d3)

Comment [How to Setup Proxy in React with http-proxy-middleware](https://hashnode.com/posts/how-to-setup-proxy-in-react-with-http-proxy-middleware/625ae43f2f84e0d4fc33d2d3)

[Diddles Code](https://hashnode.com/@diddlescode)

[May 5, 2023](https://hashnode.com/posts/how-to-setup-proxy-in-react-with-http-proxy-middleware/625ae43f2f84e0d4fc33d2d3/comment/6454f87757546b122cde66bb)

does this work when you deploy to production? if yes, are there any changes to be done. I have tried this but when deploying to production, api calls are not being redirected to the correct server.
