Dude, Vercel’s rewrites are a game-changer if you’re deploying there. No need to manually configure types proxy—just drop this in `vercel.json`:
```json
{
"rewrites": [{ "source": "/api/(.*)", "destination": "https://your-api.com/$1" }]
}
```
Otherwise, http-proxy is your friend. Just don’t forget to handle errors—it’ll crash your app otherwise.
```json
{
"rewrites": [{ "source": "/api/(.*)", "destination": "https://your-api.com/$1" }]
}
```
Otherwise, http-proxy is your friend. Just don’t forget to handle errors—it’ll crash your app otherwise.
