客户端托管MERN堆栈时,API调用不会发送到服务器

我使用urge.sh托管了我的react应用程序

https://deranged-ticket.surge.sh/

And my web server is running on my localhost:5000 , so when my frontend application makes api requests it goes to a diffrent url as you can see in this image. How can i make it go to

https://localhost:5000/api/v1/transactions instead of https://deranged-ticket.surge.sh/api/v1/transactions

评论