The helper file
The import adds one helper file atlib/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.
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.