CMS · guide

Your real site, updating as you type

Switch the editor to Preview and the page renders through your own site: its templates, components and styles, running your framework's dev server against the content you're editing. Every change shows up a moment after you stop typing, before you save and long before anything is committed.

Rendered by your own dev serverUpdates before you saveByte-identical to what you publishOpens on the page you edit

Not a mock-up. Your actual site

Most visual editors show your content in a generic template that only looks a bit like the real page. Norcube CMS doesn't. Each site gets its own sandbox that clones your connected repo and branch, installs your dependencies and runs your dev server. The preview you see is that server rendering the page.

As you edit fields, the editor streams your working copy to the running preview a fraction of a second after you stop typing, and your framework's hot reload updates the frame in place. You don't have to save or publish first.

What you see is what you'll ship. The preview and Publish use the same serializer, so the bytes the preview renders are the bytes that land in your git commit.

The sandbox looks after itself:

  • First open: it clones your repo and branch, installs dependencies and starts the dev server. You'll see "Starting preview…" for a few seconds.
  • While you edit: your changes stream in and the session stays warm.
  • When you stop: it suspends on its own and resumes on your next open with the clone already in place.
  • After about a week without use: it's removed, then rebuilt fresh the next time you open a preview.

Previews are private to your editors. Each one is gated by a short-lived signed token issued to your editor session, each site's sandbox only accepts its own token, and the preview is embedded in the editor as a sandboxed frame.

From your repo to a live preview in five steps

Connect the repo, open a page, switch to Preview. The first start takes a few seconds; after that, it updates as you type.

About 5 min
  1. Connect your site to a git repo

    Live preview renders your repo, so the site needs a connected GitHub repository and branch. Without one, the preview panel asks you to connect it first.

  2. Open a page and switch to Preview

    Open any page in the editor and use the Edit / Preview toggle in the header. The content area becomes a full-width render of that page inside your site.

  3. Let the first start finish

    The first open after a break shows "Starting preview…" while the sandbox clones your repo, installs dependencies and starts your dev server. Then the real page appears.

  4. Edit and watch it update

    Change a field and the preview follows a moment after you pause typing. Use Open in new tab to put the preview on a second screen and keep editing in the form; both stay live. Reload re-fetches the frame if a change ever needs a nudge.

  5. Map pages to their URLsOptional

    To make the preview open on the page you edit instead of the site root, declare the route mapping: a previewPath on the collection and the site-level preview block in .norcube/cms/config.yml.

What works today, and what is next

Live preview is in production and included free during the open beta. A few limits are worth knowing before you rely on it:

  • Astro today. The sandbox runs npm run dev and expects Astro's routing. Other frameworks may not render or deep-link correctly yet. Presets and detection for more frameworks are the top planned item.
  • No click-to-edit yet. You can't click an element in the preview to jump to its field. You edit in the schema-driven form, and the preview shows the result.
  • After a long break, one Reload. When a suspended sandbox resumes, the live updates can need a single Reload to reconnect.
  • Content is live, code is not. Content edits sync into a running sandbox as you type. Code you push afterwards (components, styles, dependencies) is picked up when the sandbox is rebuilt, which happens automatically after about a week without use.
  • The URL follows committed content. The preview resolves which page to open from the committed front matter, so typing a new slug doesn't make it navigate away mid-edit.

Live preview questions

Does previewing save or commit anything?
No. The preview shows your working copy as you type. Your edits autosave as a draft, and nothing reaches your branch until you hit Publish.
Is the preview what I will actually publish?
Yes. The preview and Publish use the same serializer, so the content the preview renders is byte-identical to what gets committed.
Which frameworks does it support?
It works with Astro today: the sandbox runs npm run dev and expects Astro's route shape. Other static site generators may not render or deep-link correctly yet. Support for more frameworks is the top planned item.
Who can see my preview?
Only your site's editors. The preview is gated by a short-lived signed token issued to your editor session, and each site's sandbox accepts only its own token.
Why does it say "Starting preview…"?
The first open after a break starts the sandbox: it clones your repo, installs dependencies and starts your dev server. It suspends again when you stop editing, so the next open is quicker.
Why does the preview open on the home page?
Because no route mapping is declared, or it couldn't be resolved. Add a previewPath to the collection and the preview block to .norcube/cms/config.yml, and the preview opens on the page you're editing.
What does live preview cost?
Nothing during the open beta. Live preview is included with every Norcube CMS site, and we will publish pricing before the beta ends.

Edit your site and see it live

Connect your repo, open a page and switch to Preview. Free during the open beta, no credit card.

  • No credit card
  • Setup in 5 min
  • Free tier forever
// tick. tick. tick.
0 ticks since founding
Coming soon

Join the PromptHub waitlist

PromptHub is in active development. Leave your email and we'll invite you as soon as it opens, with a free tier and no credit card.

One email when access opens. No newsletter, no spam.