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

# Finish the connection

> Merge the pull request, then add the refresh key to your host so new posts show at once.

After the import, two things finish the connection: you merge one pull request, and on a Next.js site you add one key to your host.

## Merge the pull request

**1. Open the pull request**

On the import result, press **Connect my site**. Vunora opens one pull request in your repository. Its title starts with "Vunora: connect your site" and names how many pages and posts it connects.

**2. Check the preview**

Most hosts build a preview of every pull request. Vunora shows the preview link when your host gives one. Open it and check that your site looks the same as before.

**3. Merge it**

Merge the pull request on GitHub. Your host deploys the merge as it does any other change.

When the merge is in, Vunora shows "Your pull request merged. Your site now reads its content from Vunora." The import shows **Connected**.

Until you merge, your live site does not change. You can edit in Vunora at once, but your edits show on your live site only after the merge.

See [What the import adds](https://docs.vunora.ai/developers/what-the-import-adds.md) for what is in the pull request.

## Add the refresh key to your host (Next.js)

On a Next.js site, the refresh key lets your site accept refreshes from Vunora. With it, a post you publish shows on your site right away. Without it, a new post waits up to a minute to show.

Add the key before you merge if you can.

**Who can do this:** only a workspace admin can see the key.

**1. Find the key**

Open the site, then **Site settings**. The panel **Add this key to your host** shows a **Name** and a **Value**.

The name is always `VUNORA_REVALIDATE_SECRET`.

**2. Add it to your host**

Add an environment variable with that name and value on your host. The panel has the steps for Vercel, Netlify and Cloudflare Pages under **Where to paste it**. They are also on [Host setup](https://docs.vunora.ai/developers/host-setup.md).

**3. Deploy again**

Redeploy your site so it picks the key up.

**4. Check it**

Press **Check again**. Vunora sends a test refresh to your site.

When it works, you see **Your site accepted a test refresh from Vunora**.

> [!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.

### If the check fails

| What you see | What to do |
| - | - |
| Your site is turning away refreshes from Vunora | Your host does not have the key, or has an old one. Add the key, deploy again, then press **Check again**. |
| Your host is blocking refreshes from Vunora | Password, deployment or firewall protection covers `/api/revalidate`. Let requests to `/api/revalidate` through, then check again. |
| Your site did not answer the test refresh | Check that your site is live and deployed from the branch where you merged Vunora's pull request, then check again. |
| You made a new refresh key | Your host still has the old key. Add the new one, deploy again, then check again. |

## Sites built with Vite or TanStack Start

These sites need no key. Your site picks up a published change from Vunora by itself.

## Sites that use static export

A Next.js site with static export builds every page ahead of time. A new post shows after your host builds the site again. Set up a deploy hook so each publish starts that build. See [Deploy hook](https://docs.vunora.ai/developers/deploy-hook.md).


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