Skip to content

Proxying Assets Through a Custom Host with Vercel

The simplest way to set up the required rewrite rules for your project on Vercel is by using the vercel.json file. Make sure it exists in the root of your project, and add the following contents:

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

After deploying, all of JamComments assets will be proxied through your domain. See Vercel’s documentation on the vercel.json for more information.