What you start from
This page is the Astro template, the default. A Next.js site uses the Next template and the
@sp-stage/next adapter; see Next.js sites./admin mount, a reference Hero component, the blog and forms renderers, the header and footer globals, the consent banner, and the analytics scripts in the base layout. Clone it and build the design out from there.
@sp-stage/sdk and @sp-stage/admin from the private registry at an exact version. In the platform monorepo the template consumes them from source.
Environment
Sites hold no service-role key. The public key plus row-level security covers every read a site makes; anything needing more goes through the API.
The org
An org is a row inorganizations with a settings JSON. Two settings matter on day one:
qa_mode: trueturns inline editing on. Without it the bar reads that editing is off.site_urlis the canonicalhttps://address campaign links are minted against.
memberships (user_id, org_id, role of editor or admin). A person can belong to several orgs.
The admin mount
pages/admin.astro is a static shell that boots the admin. It passes the site’s schema and two switches:
Local development
Smoke test
- Open
/admin, sign in as a member of the org. - Press Edit, click the hero title, type, press Publish.
- The bar reads Live. With no deploy hook set it reads Failed: No deploy hook, which is expected until the site has a rebuild address.
Next steps
Anchors
The attributes that make a field editable.
Components
Build and register a renderer.