Skip to main content
This page is for the person who runs the hosting of a Next.js site. Vite and TanStack Start sites need no setup on the host.

What the key does

The import adds a route at /api/revalidate to your site. When someone publishes in Vunora, Vunora calls that route so your site refreshes the changed page. The route accepts the call only when it carries the right key. Until your host has the key, your site turns each refresh away. A new post then waits up to a minute to show.

Get the key

A workspace admin finds the key in Vunora: open the site, then Site settings, then the panel Add this key to your host. It shows the Name and the Value. Each site has its own key. Use it on the server only.
Never put NEXT_PUBLIC_ or VITE_ in front of the name. That would put the key in your pages, where anyone can read it.

Add it to your host

  1. Open your project on Vercel and go to Settings, then Environment Variables.
  2. Add a variable with the name and value above. Tick Production.
  3. Save, then redeploy your latest deployment so the site picks the key up.

Check it

Back in Vunora, press Check again in the same panel. Vunora sends a test refresh to your site. When it works, the panel shows Your site accepted a test refresh from Vunora.

If the check fails

Make a new key

If the key leaks, make a new one. A workspace admin opens Site settings, then Edit details, then Rotate refresh key. Vunora uses the new key from then on. Add it to your host and deploy again, or new posts wait up to a minute to show.