Publishing
Deploy your app to the web with one click. Served from a global CDN with automatic SSL certificates.
You can set up your site just by chatting
You don't have to build your site by hand — describe what you want and AI does it for you. Use the built-in Build chat inside Serenities, or connect Claude, ChatGPT, or any MCP client over MCP and do it from your own AI. You can still set it all up by hand — this page is the reference either way.
Click Publish in your app's dashboard. Your app goes live at your-app.serenitiesai.app within seconds. Add a custom domain for your own branding.
On this page
How Publishing Works
Build
Your pages and components are compiled with Vite into optimized production bundles with code-splitting.
Upload
Built files are uploaded to cloud storage. Previous build files are replaced on each publish.
Deploy
CDN cache is purged globally. Your app is live within seconds at your subdomain.
SSL
SSL certificates are provisioned automatically. HTTPS works out of the box.
The Publish button shows live progress while this runs — a short stage label (e.g. “Compiling 24 pages…”) next to the spinner, updated as the build moves through preparing → installing → compiling → uploading → finalizing.
Search engines and AI crawlers
While it builds, publishing also saves each public page as ready-made HTML, so search engines and AI crawlers can read it without running JavaScript. Visitors get the same page and it becomes interactive in the browser. Protected pages and drafts are never saved this way. Pages are rendered only on the isolated machine that builds your site (one site at a time, no secrets); until that machine's network is narrowed, your pages are served as they always were, and the publish result says so.
Up to 100 pages are saved per publish, and each page has 5 seconds to render. A page that runs into an error or takes too long is served as before (the page loads in the browser), and Publish lists those pages so you can simplify them. Each page's date in sitemap.xml is the date that page last changed.
With a verified custom domain, that domain is your site's one address: links to your-app.serenitiesai.app are sent on to the same page on your domain.
What Gets Deployed
| What | Details |
|---|---|
| Pages | All non-draft pages are compiled and deployed. Each page is lazy-loaded for fast initial loads. |
| Components | Shared components are bundled and reused across pages. |
| SDK | Auto-generated SDK with entities (tables), user (auth), files, functions, payments, flows, email, realtime, serverFetch methods. |
| Vendor chunks | React and other libraries are bundled once and cached across all pages. |
| Auth pages | Login and signup pages are included automatically when auth is enabled. |
Performance: The build system scales to 10,000+ pages with per-page lazy loading and shared vendor chunks.
Updating Your App
After making changes to your pages, components, or settings, click Publish again. The build process runs and your changes go live within seconds.
Backend functions, environment variables, access rules, and database data update immediately — no republish needed. Only page/component code changes require republishing.
Unpublishing
Click Unpublish to take your app offline. Your site's data, files, sign-in and functions close to visitors straight away (they get “Project not published”), and the live copy is switched off. If the live copy can't be switched off yet, the site shows “Unpublished — still online”: use “Switch the live site off again” until it says Draft. Your own preview still works. Your pages, data, and settings are preserved — you can republish at any time.
Custom Domains
Connect your own domain to your published app. Supports both subdomains (www.yourdomain.com) and apex domains (yourdomain.com).
See the full Custom Domains guide for step-by-step DNS setup instructions.
Publish a table as pages (a blog, recipes, jobs)
Any table in your workspace can be published on a site as pages. Ask the AI chat, or your own AI client, to “publish my Posts table as /blog/”: you choose the address (such as /blog/:slug or /recipes/:category/:slug), which field fills the title, text, image and so on, and which field says a row is published.
- Only published rows and only the fields you mapped can be read, by anyone, and only through that site. Drafts and every other field stay private.
- It writes an access rule on the table that you can see and change in the table's access settings; removing it closes the pages again.
- A table can be published on several sites, each at its own address. Each published row needs its own address part (lowercase letters, digits and hyphens), and it may not be the address of one of the site's own pages.
- The fields that say whether and where a row is published (its status, its address part and its category) must be text or select fields (text, long text, select, status, slug, email or URL). A calculated field (a formula, lookup or rollup, for example) is refused, and a field a published table uses can't be changed to another type until you stop publishing that table.
- Binding needs “Edit and publish sites” and “Share bases and forms publicly” (it writes the table’s access rule); unbinding needs “Edit and publish sites”; setting a row to published needs “Publish content” (the Owner, Admins and Developers have it unless it was turned off for them).
- Every way a row is written follows the same publishing rules: a person (the dashboard, the AI chat, their own AI client, an API key, an app they use) needs “Publish content”; your flows, journeys, functions and app automations publish as the workspace. Your site's own visitors and members can never publish a row unless you allow it: add a write rule on the table's status field (its field access rules) that includes them. Without that rule their publishing write is refused with words that say so, and their drafts still save. A published slug must follow the same rules on every way in.
- The page itself is your site's own page code, which reads its row with
serenities.content.get({ path }).
How a row becomes a page
- When a row is published (its status set to the published value), Serenities renders that row's page with your site's own page code and stores it, so search engines and link previews see the full page: its title (your title template, or the row's own SEO title), description, image and its one main address (the one search engines should list). Editing a published row updates its page within moments; no site rebuild is needed. Your page should read its row with React's
use()inside<Suspense>(the AI writes it this way) so the stored page holds the row. - An edit of a published row by a person (in the dashboard, the AI chat or their own AI client) changes its live page only when they have “Publish content”. Anyone else's edit is saved, and they are told the live page keeps the last published version until someone with Publish content saves the row again; publishing the site again, or changing how the table is published, also brings the page up to date. Edits made by your automations, functions, apps and your site's own users (within the rules you set) update the page as they are saved.
- Sitemap: your site's
robots.txtnames a sitemap index, which lists your pages' sitemap and one sitemap per published table, each row with the date it was really last updated. Drafts are never listed. - Missing pages: an address of a published table with no published row (a draft, an unpublished or deleted row, a typo) answers a real “page not found” (404), so search engines drop it. Unpublishing or deleting a row, from anywhere (the dashboard, the AI, an automation, a function, an app or your site), removes its page and its sitemap entry. Publishing the site again also takes down any page whose row is no longer published.
- Changed addresses: when a published row's address part (its slug) changes, the old address sends visitors and search engines to the new one (a permanent 301 redirect), until a newer row takes that old address.
- Closing: removing the table's published-pages rule, unbinding the table, or deleting the table or its base takes every page of it down, with its sitemap.
- Feed: each published table has its own RSS feed with its latest 50 published rows, newest first (by the publish date field you mapped). Every row page links to it, so feed readers and newsletter tools find it on their own.
- Search engines told at once: each time a row's page is published, changed or removed, Serenities tells IndexNow (Bing, Yandex, Naver, Seznam and others), using a key your site serves itself. Google does not use IndexNow; it reads your sitemap. Only a page whose content really changed is sent, and a failed notice never stops a publish.
- News sitemap: turn on news for a table of news articles (it needs a publish date field) and the rows published in the last 48 hours get a Google News sitemap, named in the sitemap index and refreshed every day so older rows drop out. A table without news on has none.
- Structured data: every row page carries one block of structured data (JSON-LD) that search engines read: an Article (a NewsArticle on a news table) with its headline, the dates from your publish and updated date fields, its image when the row has one, and your site as the publisher. The author is your site (the default), or, when you set the author to person, the name in the row's author field.
- Pages served from your own domain through a proxy (a public base address such as
https://example.com): every address the pages name uses that base, never your site's Serenities address: each page's main address, its structured data, the RSS feed and its items, the sitemap, the notices to IndexNow, and the move to the new address after a slug change. Your proxy forwards these paths to your site's own address with the same path: the table's page addresses (such as/blog/*),/assets/*,/sitemap-c-*,/sitemap-n-*,/feed-*and your IndexNow key file (/<key>.txt). Binding the table answers that table's sitemap addresses on your domain: name them in your domain's robots.txt (your site's own sitemap index leaves them out, since search engines expect a sitemap on the same host as its pages). Each page carries its own row, so it shows its article at once, even where your proxy does not forward/api.
Git Integration
Optionally connect your app to a GitHub repository. When enabled, publishing also commits your page and component code to your repo.
Features:
- Auto-commit on publish
- Branch management (create, switch, merge)
- Rollback to any previous commit
- Full commit history
One page or component can be at most 524,288 characters (512 KB) of code, on every way in: the editor, the AI chat, your own AI over MCP, the API, a GitHub push, a branch switch or merge, and a store install. A longer one is refused and nothing is saved (a GitHub push leaves that one file out): split it into smaller components and import them.