Skip to main content
The import changes your code in one pull request. Its title starts with “Vunora: connect your site” and names how many pages and posts it connects. Nothing in your code changes until you merge it. Read the pull request on GitHub before you merge. Its description lists every file it touches.

The helper file

The import adds one helper file at lib/vunora.ts, or src/lib/vunora.ts if your code lives under src. Your pages call it. It does three things:
  • Reads your content. It fetches the published pages and posts of your site from Vunora. It carries a read-only key for this one site, which can read published content and nothing else.
  • Counts visits. It sends page views to Vunora, so you see them under Analytics for the site.
  • Shows drafts in the editor. When someone opens a page in the Vunora editor, the helper shows their draft in place, so they edit on your real design. Visitors never see drafts.
Keep this file in your repository. If you delete it, your pages stop reading content from Vunora.

Changes to your pages

The import moves the text and images of each page into Vunora and changes the page to read them through the helper. Your layout, your styles and your components stay as they are. Some text stays in your code, such as words drawn from a list in a component. The import result shows which text stays under Stays in your code. You edit that text in your code as before. The import also adds one catch-all page. It shows pages that you create in Vunora after the import, at the address you give them.

Next.js only: the refresh route

On a Next.js site, the import adds a route at /api/revalidate. Vunora calls it when someone publishes, so your site refreshes the changed page at once. The route needs the refresh key on your host. See Host setup. A Vite or TanStack Start site gets no refresh route. It picks up published changes by itself.

After the merge

When you publish a page or post, Vunora commits the change to your branch, or opens a pull request if you chose that. See How publishing works. You can keep working on the code as before. Vunora reads new commits on the branch. If a page changes both in Vunora and in your repository, Vunora asks which version wins. See Git sync and conflicts.