Framework integration
Add a Backend & CMS to a Next.js Website
Next.js is a React framework for building server-rendered and statically generated websites. VibeBackend adds a hosted CMS, forms and lead tracking behind an existing Next.js frontend, so editors manage content in a dashboard while your App Router or Pages Router site fetches it over HTTP.
How VibeBackend connects to Next.js
Fetch published pages server-side in a Server Component or route handler using your site read token. A dedicated Next.js SDK with typed helpers and revalidation is on the roadmap; until it ships, use the REST Content API directly.
Who it's for
Developers and teams running a Next.js marketing site or app who need editable content and a client-friendly dashboard without building a CMS themselves.
What's supported
- Server-side content fetching in the App Router or Pages Router
- Draft, publish and unpublish workflow managed in the dashboard
- Form submissions via the token-authenticated forms API
- HMAC-signed webhooks to revalidate or rebuild on publish (beta)
Setup process
- 1Connect your Next.js site in the VibeBackend dashboard to get a site ID and read token.
- 2Store the token as a server environment variable — never expose it in the browser.
- 3Fetch published pages from the Content API in a Server Component or route handler.
- 4Optionally add a signed webhook endpoint so publishing triggers revalidation.
Common questions
- Can VibeBackend work with Next.js?
- Yes. A Next.js site fetches published content from the VibeBackend REST Content API using a server-side read token. A typed Next.js SDK is on the roadmap, but the REST API works with the App Router and Pages Router today.
- Do I need to rebuild my Next.js site?
- No. VibeBackend connects to your existing Next.js frontend and adds a backend behind it. You keep your components, routing and design.
- How does content update on my deployed site?
- You can fetch on each request, use Next.js revalidation, or add a signed VibeBackend webhook that triggers a rebuild or revalidation when content is published.
Related integrations
Looking for something else? See all supported integrations.
I already have a vibe-coded website.
Give it the backend it's missing.
Connect your site in minutes and hand your clients a professional CMS, forms and lead tracking — with SEO, media and more on the way, no redesign required.