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

# Deploy hook

> Make a site that builds ahead of time rebuild each time someone publishes in Vunora.

A Next.js site with static export (`output: 'export'`) builds every page ahead of time. A post you publish shows on that site only after the next build. A deploy hook starts that build each time someone publishes.

Sites that do not use static export need no deploy hook.

## Option 1: a deploy hook on your host

Use this when your host builds the site, as Vercel and Netlify do.

**1. Make a deploy hook on your host**

On Vercel, open your project, then **Settings**, **Git**, **Deploy Hooks**, and make a hook for your production branch. On Netlify, open **Build & deploy**, then **Build hooks**. Copy the URL the host gives you.

**2. Paste it into Vunora**

In Vunora, open **Settings** in the workspace sidebar, then the **Deploy** tab. Paste the URL into **Deploy hook URL**.

**3. Turn it on**

Tick **Trigger a deploy when a post or page is published**, then save.

**4. Test it**

Press **Test deploy**. Your host starts a build. Check that it shows on your host's deployments list.

![The Deploy tab of workspace settings, with the Deploy hook URL field, the auto-deploy checkbox and the Test deploy button.](https://mintcdn.com/vunora/XUsNjlJvUSO44trT/images/app/settings-deploy.png?fit=max\&auto=format\&n=XUsNjlJvUSO44trT\&q=85\&s=948b692060cb661df63e1525be184534)

**What you see after:** after each publish, Vunora sends a request to the hook and your host starts a build. When you publish a post, Vunora tells you: "Your site builds its pages ahead of time, so this post shows there after the rebuild your deploy hook starts."

## Option 2: your site builds on GitHub

If a GitHub workflow deploys your site, Vunora can start that workflow after each save. The import offers this, and so does **Site settings**, under **Start a build after you save**.

**1. Review the change**

Vunora shows the one line it adds to your deploy workflow file, and whether it commits the line to your branch or opens a pull request.

**2. Approve it**

Press **Approve and allow on GitHub**. GitHub asks for permission to change workflow files. Vunora uses it for this one change and does not keep it.

**3. Merge if needed**

If Vunora opened a pull request, merge it. Saving starts a rebuild after the merge.

**What you see after:** "Saving starts a rebuild" and "Vunora starts your GitHub build after each save."

Only someone who can connect the site can approve this change.

## If it does not work

| What you see | What to do |
| - | - |
| No deploy workflow found | Vunora found no GitHub workflow that deploys this site. Use a deploy hook from your host instead. |
| Vunora cannot add the build trigger to this deploy workflow safely | Add the highlighted line to the workflow file yourself, or use a deploy hook. |
| GitHub did not give the permission, so Vunora sent nothing | Press approve again and allow the permission on GitHub. |
| Branch protection blocked a direct commit, so Vunora opened a pull request | Merge the pull request. |
| A published post does not show | Check that the hook URL is right and the switch is on, then publish again. Open your host to see whether a build started. |

Without a hook or a workflow, a post shows after your host next builds from a commit.


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