> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vunora.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Host setup

> Add the refresh key to Vercel, Netlify or Cloudflare Pages so a Next.js site shows new content at once.

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**.

| Name | Value |
| - | - |
| `VUNORA_REVALIDATE_SECRET` | The refresh key for this site, from Site settings |

Each site has its own key. Use it on the server only.

> [!WARNING]
>
> 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

> [tab] Vercel
>
> 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.

> [tab] Netlify
>
> 1. Open your site on Netlify and go to **Project configuration** (**Site configuration** on older accounts), then **Environment variables**.
> 2. Add a variable with the name and value above.
> 3. Save, then go to **Deploys** and trigger a new deploy.

> [tab] Cloudflare Pages
>
> 1. Open your project in Cloudflare under **Workers & Pages** and go to **Settings**, then **Variables and Secrets**.
> 2. Add the name and value for **Production**. Choose **Secret** as the type.
> 3. Save, then retry 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

| What you see | Cause and fix |
| - | - |
| Your site is turning away refreshes from Vunora | The host has no key or an old one. Add the current key, deploy, then check again. |
| Your host is blocking refreshes from Vunora | Password, deployment or firewall protection covers `/api/revalidate`. Let requests to that path through, then check again. |
| Your site did not answer the test refresh | The site is not live, or it is not deployed from the branch with Vunora's pull request merged. Deploy that branch, then check again. |

## 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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.