Skip to content

Proxying Requests Through Vercel

To proxy JamComments requests through your Vercel domain, add a rewrite rule to your vercel.json file in the project root:

{
"rewrites": [
{
"source": "/jamcomments/:anything*",
"destination": "https://go.jamcomments.com/jamcomments/:anything*"
}
]
}

After deploying, any request to your-site.com/jamcomments/* will be proxied to go.jamcomments.com. Visitors see your domain, but JamComments handles the request.

See Vercel’s documentation on vercel.json rewrites.