CMS

Use Pagiera as a self-hosted CMS for a Next.js site

Can you use Pagiera as a CMS for a Next.js site?

Yes, for pages. Pagiera stores every page as a document in your own PostgreSQL database, separates drafts from published revisions, and gives non-developers a visual editor to change them — the job a CMS does. It is not a headless CMS in the content-modelling sense: instead of defining collections and querying them over an API, pages bind to the APIs you already have. Nothing leaves your infrastructure and no CMS service sits in the request path.

Updated 13 Sept 20265 min read

Key points

  • Page documents live in your PostgreSQL database, not in a vendor's cloud.
  • Drafts are private until published, and revisions are kept.
  • There are no content models or collections — pages read the APIs you already run.
  • Published pages render on the server, so editors' changes are in the first HTML response.

What Pagiera manages, and what it does not

Pagiera owns thisYou still own this
Page documents, drafts, published revisionsProduct data, users, orders — whatever your APIs already hold
The visual editor and the publishing stepAuthentication, hosting, deployment and your domain
Server-side resolution of a page's data blocksThe endpoints those blocks call

NoteIf you need arbitrary content types with their own schemas and a query API, that is a headless CMS, and Pagiera is not one. If you need pages that marketing can edit and that read your existing data, that is exactly this.

How it compares to a headless CMS

Headless CMSPagiera
Content lives in the vendor's cloud and is fetched over their API.Content lives in your database and is read by your own server.
Editors fill in fields; a developer decides how they render.Editors change the page itself, on the canvas that produces it.
A new layout usually means a developer ships code.A new layout is a visual edit, published without a deploy.
Billed per seat, record or API call.MIT-licensed; you pay for your own Postgres and Redis.

Who touches what

  1. A developer installs the package, mounts the API route and puts the editor behind your authentication.
  2. An editor opens the studio, changes the page and saves — which only updates the draft.
  3. Anyone with access reviews the draft on a preview route before it is public.
  4. Publishing promotes the approved revision and refreshes the cached page.

Because publishing changes page content rather than code, an editorial change does not wait on a deployment — but it also does not deploy your application, so your release pipeline stays exactly as it was.

Keeping editor-made pages indexable

The usual failure of visually built pages is that their content arrives after the first response, so crawlers and answer engines see an empty shell. Published Pagiera pages are loaded on the server and their Request blocks finish before HTML is returned, so what a crawler reads is what an editor published.

Frequently asked questions

Is Pagiera a CMS?

For pages, yes. It stores page documents in your own PostgreSQL database, keeps drafts separate from published revisions and gives non-developers a visual editor. It is not a headless CMS in the content-modelling sense: you do not define arbitrary collections and query them over an API.

Where is the content stored?

In the PostgreSQL database you configure with PAGIERA_POSTGRES_URL. Redis caches published pages. Both run on your own infrastructure; there is no Pagiera-hosted content service.

Can non-developers publish without a deploy?

Yes. Saving updates a draft and publishing promotes it to the public page, which is a content change rather than a code change. Deploying the host application remains a separate, developer-owned step.

Can I migrate off it?

The package is MIT-licensed and the pages are JSON documents in your own database, so the content is readable without Pagiera running. There is no vendor account to close or export queue to wait on.

PagieraRead it, then build it

Enough theory.
Open the canvas.

Install the complete visual builder, choose a starting point and shape it into something unmistakably yours.