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.
Edit content without touching code
Your editors change copy. Your developers keep the stack.
Start freeNot 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.
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.
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.
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.
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.
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
previewPathon the collection and the site-levelpreviewblock 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 devand 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?
Is the preview what I will actually publish?
Which frameworks does it support?
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?
Why does it say "Starting preview…"?
Why does the preview open on the home page?
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?
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