Marketing site (apps/site)
On
main(phases 0–2 + staging cutover + prod domain-flip code). Merged #318 (2026-10-02, yoni-monday) — closes #300; refs #301 #302. Plan:docs/plans/marketing-site.md. Staging cutover (#303): step 1 (#360, merged) wires CD /env:up/ Pulumi; step 2 (#361, merged 2026-10-03) moves staging tobrilliant.rocks→ site,app.brilliant.rocks→ studio. Prod domain flip (#388, merged 2026-10-04) — proditsbrilliant.ai→ site,app.itsbrilliant.ai→ studio. Phase 4 cleanup on #304: #400 (merged 2026-10-04 — session-cookie read gate; narrows #305); merged #401 (merged 2026-10-04) deleted the studio’s leftover marketing/landing routes (signed-out visitors always go to sign in). Live prod flip still needs the lead’s infraallow-deletes+ deploy (see Prod cutover).
Path: apps/site · Worker brilliant-site · package @brilliant/site
Why
Signed-out marketing lives on the prerendered apex app (apps/site). Before the split, those pages sat inside the studio SPA (apps/control-plane/web): a crawler or link preview got the ~3.7 KB studio shell titled “Brilliant Studio”; per-page seo fields never reached the HTML; paid traffic waited for the studio entry bundle and session query before paint; LinkedIn, Slack, and X run no JavaScript, so campaign links previewed as the studio.
The fix (on main): split signed-out marketing into a prerendered TanStack Start app on the apex; move the studio to app.<domain> after cutover. Admin stays on admin.<domain>. Merged #401 (merged 2026-10-04) deleted the studio’s leftover marketing/landing routes so the site is the only marketing front.
Key decisions (accepted plan)
| # | Decision | Notes |
|---|---|---|
| 1 | Content in code, prerendered at build | No CMS. Typed data files + content tests. |
| 2 | New apps/site (TanStack Start) | Worker brilliant-site, package @brilliant/site. Same router API as studio. |
| 3 | Site on apex, studio on app.<domain> | Admin stays admin.. |
| 4 | Prompt hand-off via URL fragment | app.<domain>/start#<base64url JSON> — fragment never hits server/logs/Referer. |
| 5 | Site worker proxies three paths | /v1/suggestions, /v1/integrations/catalog, /api/bi → control plane over service binding (same-origin; BI sendBeacon safe). Without a session, only visitor landing events (#364, merged). |
| 6 | First-party attribution | utm_*, gclid, li_fat_id, referrer, landing path + shared BI session id; control plane emits signed_up once on user create. |
| 7 | SEO vs campaign pages | /use-cases/* indexed with nav; /lp/<slug> noindex + canonical to organic; /?c=<slug> rewrite; ?lp=1 redirects to /lp/…. |
| 8 | Shared code | Primitives + shared base CSS → @brilliant/studio-ui; composer feature → packages/composer (no apps/* imports; server-renderable). Site must not import another app’s stylesheet (#367, merged — closes #314). |
| 9 | Apex 308s studio prefixes | STUDIO_PATH_PREFIXES in packages/capabilities → APP_ORIGIN. A studio path missing from the list 404s on the apex; open #507 adds /projects. |
| 10 | Session cookie → __Host-brilliant_session | Written on https. #400 (merged): stop dual-reading brilliant_session over https (sibling-subdomain plant). Plain-http local keeps the old name. |
| 11 | No hardcoded hostname | SITE_ORIGIN / APP_ORIGIN per env; INDEXABLE=false until prod domain ready. |
| 12 | Site worker in Effect | One Effect.runPromise at the fetch boundary. |
Architecture
apex (SITE_ORIGIN) app.<domain> (APP_ORIGIN)
┌─────────────────────────┐ ┌──────────────────────────┐
│ apps/site Worker │ 308 │ apps/control-plane │
│ (brilliant-site) │──────────▶│ studio SPA + API │
│ • prerendered HTML │ studio │ • /start (fragment) │
│ • /lp, /use-cases, … │ prefixes │ • session / auth │
│ • proxy /v1, /api/bi │──svc bind─│ │
└─────────────────────────┘ └──────────────────────────┘| Piece | Role |
|---|---|
apps/site | TanStack Start; every marketing route prerendered with own <title>, description, canonical, og:*. |
Worker brilliant-site | Effect fetch handler: C3 308s, three-path proxy, data-signed-in hint, noindex unless INDEXABLE=true, ?c= rewrite; cache headers via shared staticCacheControl (#347, #362). |
packages/composer | LandingComposer, prompt editor/chips, SourcePicker, model/thinking pickers, suggestion row, useLandingPrompt. No apps/* imports; must render with no DOM. |
@brilliant/studio-ui | Shared presentational marks (BrandMark, SourceChip, ProviderIcon static imports, …) and shared base styles under src/styles/ (theme.css, themes.css, base.css) — see Shared CSS. |
| Control plane / studio | /start hand-off, attribution cookie on /auth/login, __Host- session cookie (unprefixed read only on plain http after #400, merged), signed_up BI on user create. |
Routes (site)
| URL | Behaviour |
|---|---|
/, /pricing, /security, /enterprise, /community, /resources | Marketing pages (63 prerendered total in #318, including use cases). |
/terms, /privacy | Draft legal pages (#536, merged): prerendered, footer-linked, noindex, not in sitemap until counsel signs off. See Legal footer. |
/use-cases, /use-cases/:department, /use-cases/:department/:useCase | Indexed SEO pages with nav (content from typed department files). |
/lp/<department>[/<use-case>] | Auto ad pages: no nav, noindex, canonical → organic. |
/lp/<slug> | Campaign override from content/campaigns/<slug>.ts. |
/?c=<slug> | Rewrite to campaign/ad page (not a redirect). |
?lp=1 on use-case paths | Redirects to /lp/… (keeps query). |
Paths under STUDIO_PATH_PREFIXES | 308 to APP_ORIGIN (same path + query). |
/start hand-off (C1)
https://<APP_ORIGIN>/start#<base64url(UTF-8 JSON)>
{
"v": 1,
"sid": "<site BI session id>", // required
"prompt": "…", // optional (absent for plain Sign in)
"model": "…", // optional
"thinkingLevel": "…", // optional
"integrations": ["…"], // optional
"attribution": { // optional first-touch
"landing_path": "/lp/…",
"campaign": "…",
"referrer": "…",
"utm_source": "…", …,
"gclid": "…", "li_fat_id": "…"
}
}- Studio strips the fragment in the entry module before Sentry and BI initialise (
history.replaceState), so no SDK records the prompt in a URL, breadcrumb, or replay. - Adopts
sidasbrilliant.bi.sid(shared funnel session). prompt/ model / thinking / integrations → existing landing stash (writeLandingStash).sid+ attribution →/auth/loginquery → short-lived signed cookiePath=/auth→signed_upon user create only.- Unknown
v/ bad fields drop that field, never the visit. Encoded fragment length capped (constant frompackages/composer). - Review contract
start-handoff-never-builds-without-click:/startonly fills the composer from the fragment; the visitor must click Send before any build. Payload model is not applied (studio default kept).
Attribution & cookies
| Concern | Behaviour |
|---|---|
| First-touch | Site captures utm_*, gclid, li_fat_id, referrer, landing path; rides every site→app link via /start. |
signed_up | Emitted server-side once when /auth/callback creates the user. |
| Session | __Host-brilliant_session on https. #400 (merged, session-cookie-host-prefix-wins): prefixed cookie always wins when present; brilliant_session is read only when studioOrigin is plain http (same gate writeSessionCookie uses). See Control plane — Session cookie host-prefix. |
| Signed-in hint | brilliant_signed_in on SITE_COOKIE_DOMAIN (C2). Never authorizes. Site worker sets <html data-signed-in> via HTMLRewriter. SITE_COOKIE_DOMAIN is non-empty only when the studio is app.<site> (#361); empty before the flip and on side envs. |
Phase status (after #318 merged)
| Phase | Issue | On main? | Notes |
|---|---|---|---|
0 — shared composer, studio-ui marks, reserve app subdomain | #300 | Yes (#318) | No behaviour change on studio marketing until cutover. |
1 — apps/site (63 pages, Worker, proxies, noindex) | #301 | Yes (#318) | Site Worker deploy path landed in cutover step 1 (#360, merged; closes #315). |
2 — /start hand-off, attribution cookie, dual session cookie | #302 | Yes (#318) | Hint cookie + logout-to-site turn on when SITE_COOKIE_DOMAIN is set (step 2). Signed-out → /auth/login was gated on VITE_SITE_ORIGIN until merged #401 (merged 2026-10-04) (always redirects). |
| 3 — staging cutover | #303 | Code on main | Step 1 (#360, merged) + step 2 (#361, merged). Live domain attach still needs infra allow-deletes + deploy. |
| 4 — prod cutover + cleanup | #304 | Partial | Domain flip (#388, merged) — prod itsbrilliant.ai → site, app.itsbrilliant.ai → studio. Live flip still needs lead infra allow-deletes + deploy. #400 (merged): stop reading unprefixed brilliant_session over https (narrows #305). Merged #401 (merged 2026-10-04): deleted studio marketing/landing routes (routes/marketing/*, routes/landing.tsx, marketing-only components/landing/); signed-out always → /auth/login (no VITE_SITE_ORIGIN gate). Marketing-delete landed; live infra flip still pending. |
Cutover step 1 — deploy plumbing (#360, merged)
Landed on main 2026-10-03 (closes #315). Nothing user-visible until step 2 moves DNS.
| Piece | Behaviour |
|---|---|
bun run deploy in apps/site | Renders the env's config, builds against it (prerendered HTML bakes SITE_ORIGIN / APP_ORIGIN), deploys Cloudflare vite plugin output dist/server/wrangler.json. |
Missing origins.site | Was (step 1 / #360): skip with ::warning:: so CD stayed green across the infra race. After #387 (merged): writeRenderedConfigs refuses early and canonical envs throw — see Cutover hardening. |
Contract site-vars-from-origins | Site's SITE_ORIGIN / APP_ORIGIN come from cloudflare-ids origins.site / origins.studio, never from the shared string replacement (the site's own origin is the string that replacement rewrites to the studio's). INDEXABLE stays "false". |
Pulumi environmentOrigins | Publishes origins.site: custom domain if set, else brilliant-site.<sub>.workers.dev. domains.site attaches a custom domain only when set (staging sets none in step 1). Custom domain needs the Worker already deployed first. |
deploy.yml | Adds a site step after admin. |
| Side envs | env:up deploys brilliant-site-<env> last, bound to that env's control plane, records it in state; env:down deletes the Worker + generated config. |
Rollout (after step 1 merge)
infra.ymlrunspulumi up staging→ publishesorigins.siteas staging'sworkers.devhost.deploy.ymldeploys the site onceorigins.siteexists. #387 (merged) fails the site step when it is missing (no skip).- Site live at
brilliant-site.brilliant-ai-staging.workers.dev, stillnoindex, nothing points at it. - Step 2 moves
brilliant.rocks→ site andapp.brilliant.rocks→ studio.
Cutover step 2 — domain flip (#361, merged)
Landed on main 2026-10-03 (yoni-monday; stacked on step 1). Staging config: brilliant.rocks serves the marketing site, app.brilliant.rocks serves the studio. Admin stays admin.brilliant.rocks. Campaign and use-case pages become reachable on the real apex once infra attaches the domains.
| Piece | Behaviour |
|---|---|
Pulumi domains (staging) | studio: app.brilliant.rocks, site: brilliant.rocks; admin unchanged. Custom domains use deleteBeforeReplace. The cutover apply used site-dependsOn-studio so the apex was released before brilliant-site claimed it; #398 (merged) dropped that edge after cutover (a studio domain replace must not recreate the site's). |
Auth0 hosts / logoutOnlyHosts | hosts gain https://app.brilliant.rocks for callbacks. The apex https://brilliant.rocks lives in auth0.logoutOnlyHosts (#398, merged) — logout URLs only, no /auth/callback, /auth/app/callback, or web origin. |
Control-plane render (scripts/env/lib/render.ts) | After the shared replacement (which would rewrite the site's origin to the studio's), writes SITE_ORIGIN from origins.site and SITE_COOKIE_DOMAIN = siteCookieDomain(studio, site). |
Contract site-fronts-studio-only-on-a-subdomain | siteCookieDomain returns the site's host only when the studio hostname ends with .<site>; otherwise "" (pre-flip, side envs, lookalikes like app.notbrilliant.rocks). |
Non-empty SITE_COOKIE_DOMAIN turns on | (1) brilliant_signed_in hint cookie so the site header can show "Open studio"; (2) logout Auth0 returnTo = SITE_ORIGIN/ (contract logout-returns-to-site-only-when-it-fronts). Historically also baked SPA VITE_SITE_ORIGIN so signed-out studio visitors went to /auth/login — merged #401 (merged 2026-10-04) removed that gate (and the env); signed-out always redirects. |
| Signed-out studio shell | SignedOut / signedOutView: no session → redirect to /auth/login once per tab (signed-out-redirects-once), then a Sign-in button; a /me 403 (refused / suspended) never redirects (Auth0 would loop). After #401 (merged 2026-10-04): always this behaviour (no landing view, no siteFrontsStudio / VITE_SITE_ORIGIN gate). Before #401, side envs and pre-flip hosts with VITE_SITE_ORIGIN unset still showed the in-studio landing. |
fetchMe | 401 → signed out (null); 403 → throws so the shell can show refusal, not "signed out". |
targets.ts | Staging controlPlaneUrl → https://app.brilliant.rocks (health, smoke, e2e). |
Effect on staging users: everyone is signed out once — the __Host- session cookie belonged to the old host.
Rollout (lead, after merge)
infra.ymlon main plans and stops on the domain replacement (needsallow-deletes). Expected: replace…-cloudflare-domain-studio, create…-cloudflare-domain-site, update Auth0 client URLs, updatecloudflare-ids; nothing else.- Dispatch
infra.ymlwithstack=stagingandallow-deletes=true. deploy.ymlwaits for verify then the candidate (~20 min) so it renders the newcloudflare-ids. If it raced, dispatchdeploy.ymlfor the merge sha (not "re-run failed jobs").- Between steps 2 and 3, staging sign-in is broken for a few minutes (old site build still points
APP_ORIGINat the apex). - Verify: curl
/, a use case and a campaign for H1/title/og:*/canonical/noindex; landing → send →/start→ login → app created; 308s for/mcp,/v1/integrations/callback,/app/<id>; logout lands on the site;bun scripts/e2e-smoke.ts --env staging.
Not live-verified in the PR: the flip cannot run on a side env (no shared parent domain). Live check is the staging rollout above.
Cutover hardening (#387, merged)
Landed in #387 (merged 2026-10-04 by yoni-monday; site-cutover-hardening → main). Prerequisite for prod cutover #304; closes blocking items of #370.
Symptom this fixed after staging apex → site (#361): preview and the Code tab failed (empty iframe / code_tab_loads) while the studio worked. Conductor frame-ancestors still trusted the old apex via a stale CONTROL_PLANE_URL secret.
| Piece | Behaviour |
|---|---|
CONTROL_PLANE_URL | secrets:push / withComputedUrls takes it from origins.studio (contract control-plane-url-from-studio-origin) — Secrets. |
| Health probes + studio asset carry-forward | Use the control plane's workers.dev host, not the custom domain/apex (after cutover the apex is the site and has no studio manifest) — Hosting. |
Missing origins.site | writeRenderedConfigs refuses before writing any file (contract canonical-render-requires-site-origin); deploy.ts also throws on canonical envs (keeps CD from staying green on a stale apex). |
BASE_STUDIO_ORIGIN / base CONTROL_PLANE_URL | https://app.brilliant.rocks (staging studio), not the site-owned apex. |
Verify site-build | Prerenders all pages (~9 s) so a throwing page fails before merge. |
Prod rollout: #388 config is on main (domains.site / domains.studio / Auth0 / PRODUCTION_URLS). origins.site still requires the lead’s prod infra.yml (allow-deletes) before/alongside the live flip — step 1 of the #388 rollout / #304. A prod deploy fails at the site step until that infra lands.
#370 follow-ups: site domain dependsOn drop + Auth0 apex as logout-only landed in #398 (merged; see below). Conductor-last ordering in deploy.yml remains (now guarded by site-build).
Prod cutover — domain flip (#388, merged)
Landed on main 2026-10-04 (yoni-monday; stacked on #387; mirrors staging’s #361). Prod config: itsbrilliant.ai serves the marketing site, app.itsbrilliant.ai serves the studio. Admin stays admin.itsbrilliant.ai. Live flip still needs the lead’s infra allow-deletes + deploy — not live-verified until that runs.
| Piece | Behaviour |
|---|---|
Pulumi domains (prod) | studio: app.itsbrilliant.ai, site: itsbrilliant.ai; admin unchanged. Same deleteBeforeReplace apex handoff as staging; #398 (merged) dropped the lasting site-dependsOn-studio edge. |
Auth0 hosts / logoutOnlyHosts | hosts gain https://app.itsbrilliant.ai for callbacks. The apex https://itsbrilliant.ai lives in auth0.logoutOnlyHosts (#398, merged). |
targets.ts | PRODUCTION_URLS.controlPlaneUrl → https://app.itsbrilliant.ai (health, smoke, e2e). |
| Everything else | Control plane SITE_ORIGIN / SITE_COOKIE_DOMAIN, site vars, conductor/workflows CONTROL_PLANE_URL already render from origins (#387). Merged #401 (merged 2026-10-04) dropped SPA build-time VITE_SITE_ORIGIN (server SITE_* unchanged). |
Effect on prod users: everyone is signed out once — the __Host- session cookie belonged to the old host. The conductor deploy also evicts running turns.
Rollout (lead, prod needs approvals)
- Before merge (may already be done):
infra.ymldispatch, stackprod,allow-deletes— the only replace iscloudflare-ids-version. Publishesorigins.siteon workers.dev; applies any pending broker Lambda. No user-visible change. deploy.ymlproduction at the newest staging-verified sha → site onbrilliant-site.brilliant-ai-production.workers.dev; check HTML (title, canonical,noindex).- Merge this; wait for staging to verify a sha containing it.
- Quiet time (signs everyone out):
infra.ymlprodallow-deletes(expect replacedomain-studio, createdomain-site, update Auth0, replacecloudflare-ids), thendeploy.ymlproduction at that staging-verified sha. - Live checks: apex HTML (H1, title,
og:*, canonical,noindex); 308s for/mcp,/auth/login,/app/<id>,/v1/integrations/callback; sign-in onapp.; landing → Send →/start→ login → composer filled → Send builds; preview, Code tab, publish; logout returns to the apex.
Rollback (two applies, in this order). A plain revert in one apply fails: Pulumi deletes a removed resource at the end of the update, so the studio domain would try to reclaim the apex while domain-site still holds it.
- Remove only
domains.sitefromPulumi.prod.yaml, merge, runinfra.ymlprod withallow-deletes— deletesdomain-site, frees the apex. - Set
domains.studioback toitsbrilliant.ai, reverttargets.ts, merge, runinfra.ymlprod withallow-deletes+ redeploy at a staging-verified sha.
Users sign in once more. Preview step 1 after the flip (before you need it); before the flip prod’s state has nothing to revert yet.
Not live-verified in the PR: the flip cannot run on a side env. Live check is the prod rollout above.
Auth0 logout-only apex + drop site dependsOn (#398, merged)
Landed in #398 (merged 2026-10-04 by yoni-monday; follow-ups from #361/#388 reviews, tracked on #370).
| Piece | Behaviour |
|---|---|
auth0.logoutOnlyHosts (new, optional) | Hosts the studio logout may return to without sign-in there. Staging: https://brilliant.rocks. Prod: https://itsbrilliant.ai. Moved out of hosts. |
studioClientUrls() | Builds callbacks / allowedLogoutUrls / webOrigins. Logout-only hosts join logout URLs only — never /auth/callback, /auth/app/callback, or web origins. Test fails if a logout-only host leaks into callbacks. |
Contract logout-returns-to-site-only-when-it-fronts | Points at logoutOnlyHosts (or hosts) whenever SITE_COOKIE_DOMAIN is set — control-plane logout comment updated. |
Site domain dependsOn | Removed. Needed only for the apex move between Workers; left in place, any later replace of the studio domain also recreated the site's. deleteBeforeReplace stays. |
Infra plan (staging on merge via infra.yml; prod needs a separate infra.yml dispatch): update Auth0 studio client — callbacks and web origins lose the apex; logout URLs unchanged. No create/delete/replace from the dependsOn drop.
Signed-out BI / visitor ingest (#364, merged)
Landed in #364 (merged 2026-10-03, yoni-monday; stacked on #363). Closes #321. Full rules: BI events — Visitor ingest.
Before this, /api/bi sat behind session middleware, so signed-out landing batches got a 401 the client swallowed. The campaign funnel had signups and nothing before them.
| Piece | Behaviour |
|---|---|
visitor events | page_viewed, prompt_submitted, suggestion_clicked, model_changed |
| No-session branch | Those events only; no tenant / user / app / turn on rows; max 20/batch |
| Rate limit | BI_VISITOR_RATELIMIT — 30 batches / minute per IP (before body read) |
| Session present | Valid or not → session path; invalid cookie stays 401 |
| Funnel join | BI session_id via /start → signed_up |
Deferred / known gaps (not claiming shipped)
- Side-env / CD deploy of the site worker (#315) — done in merged #360.
- Site imports studio
index.css(#314) — fixed in merged #367 (shared base →studio-ui; onmain). - Browser vs platform event gating on
/api/bi(#309) — done in merged #363. - Signed-out BI 401 (#321) — fixed in merged #364.
- Published apps on a shared / studio-adjacent origin (#305) — path: dedicated apps zones #412 (merged) + per-app host mode #413 (merged; live after #412 infra apply); see Dispatch — Host mode.
- Placeholder OG images (1408×720 heroes, not 1200×630 cards).
useReveal and reduced motion (#365, merged)
Landed in #365 (merged 2026-10-03, yoni-monday). Refs #348.
packages/composer useReveal drives the landing / use-case hero prompt reveal. The site prerender has no window, so it assumes motion and emits HTML that starts the reveal.
| Rule | Why |
|---|---|
| First client render must match the prerender | Reading prefers-reduced-motion during render made a reduced-motion visitor’s first paint drop the reveal the HTML had → React hydration error #418 on every landing and use-case page, then a full client re-render. |
Hydration uses a server snapshot that assumes motion (useSyncExternalStore) | First paint stays identical to the prerender; after hydration React re-renders with the visitor’s real setting. |
| End the reveal in an effect when the visitor prefers reduced motion | Reduced-motion visitors still skip the animation as soon as the effect runs. |
| Later reveals never start under reduced motion | A key change must not paint revealing=true for one frame (e.g. PlanDocLiveSection); the hook reads the setting after hydrate so those reveals stay off. |
CSS: .prompt-reveal-unit { animation: none } under prefers-reduced-motion: reduce | In packages/studio-ui/src/styles/base.css (after #367). Without JS, reduce visitors get opacity 1 immediately instead of words stuck at opacity 0. |
Tests: packages/composer/test/use-reveal.test.tsx (reduced-motion first render equals prerendered HTML); apps/control-plane/web/test/use-reveal-client.test.tsx (client render never starts a reveal under reduced motion).
Shared CSS (studio + site) (#367, merged)
Landed in #367 (merged 2026-10-03, yoni-monday). Closes #314.
Problem: apps/site/src/styles.css imported the studio’s whole apps/control-plane/web/src/index.css, so the site shipped ~11.7 KB of studio-only rules (wiki, knowledge, publish-button, plan-doc) and phase 4 could not delete studio landing CSS without breaking the site.
Layout (both apps import in the same order, before their own rules)
| Sheet | Lives in | Role |
|---|---|---|
theme.css | packages/studio-ui/src/styles/ (was studio-theme.css) | Shared theme tokens |
themes.css | same (was components/landing/landing-themes.css) | Landing themes |
base.css | same | Body, type helpers, entrances, skeletons, focus, menus, landing prompt reveal/source menus, phone tab bar |
landing.css | next to model-picker.css in the composer | Landing-specific |
Studio index.css | apps/control-plane/web/src/ | Studio-only (wiki editor, knowledge, directories, publish button, chat shimmers) |
Rules of thumb (also in gotchas/studio-frontend.md)
- A rule the marketing site also needs goes in
packages/studio-ui/src/styles/base.css, not the studio’sindex.css. - The site must not import another app’s stylesheet; a test fails if it does, or if shared sheet order differs from the studio’s.
- The site declares its own
tailwindcssdependency (it used to get it transitively through the studio import). - Moving a rule between shared base and an app sheet changes cascade order — compare built CSS before/after.
Cascade check (PR claim): studio keeps the same rule set and Tailwind layer order; site drops 83 studio-only selectors. Visual diffs were content noise only.
Image loading & cache headers (#347 / #362, merged)
Landed in #347 (merged 2026-10-03, yoni-monday). Landing images used to wait for the SPA to render, and every asset came back max-age=0, must-revalidate. No visual change — only when and how often images are fetched.
Preload (start with the page)
The composer's gradient frame (COMPOSER_FRAME_IMAGE = /landing/prompt-box-border.png) is a CSS background and the largest paint on every page with a prompt box. Without a hint, the browser finds it only after layout.
| Rule | Where |
|---|---|
<link rel="preload" as="image" fetchpriority="high"> for the frame | Home, use-case pages (organic + /lp/…/:useCase), campaign /lp/<slug> pages — via headForPath(…, { preloadImages: [COMPOSER_FRAME_IMAGE] }) in apps/site/src/lib/head.ts |
| No frame preload | Department ad index pages, marketing pages without a prompt box (/pricing, /security, …) |
fetchPriority="high" on the marketing hero <img> | MarketingShell Hero — above-the-fold largest paint on those pages |
| Below-the-fold images | loading="lazy" with width/height set (no layout shift) |
| Studio shell | Same frame preload in apps/control-plane/web/index.html (signed-in home; #401 merged 2026-10-04 removed the studio landing that used to share it) |
Cache-Control (shared staticCacheControl)
Helper lives in packages/capabilities/src/static-cache.ts (staticCacheControl). The site Worker applies it in finalize (#347); the control-plane / studio Worker applies the same helper on its ASSETS SPA fallback (#362, merged — closes the studio half of #348). Cloudflare's assets binding otherwise answers every file max-age=0, must-revalidate.
Applies to 200 and 304 (a 304's headers are copied onto the browser's stored entry; max-age=0 on revalidation would undo freshness).
| Path / type | Header |
|---|---|
Hashed /assets/* (with a non-HTML content-type) | public, max-age=31536000, immutable |
Images / fonts (by Content-Type, or path ext when 304 has no type) | public, max-age=86400, stale-while-revalidate=604800 |
| HTML / SPA shell, misses, redirects, 404 images, other statuses | No long max-age — keep the assets service header |
Contract static-cache-never-pins-a-page: never pin text/html. The studio SPA fallback answers a missing /assets/… chunk with index.html and a 200; an immutable year on that URL would leave the visitor broken until cache clear. Under /assets/, a 304 with no content-type also returns null (an immutable 200 is never revalidated, so that 304 is a shell or a pre-deploy entry).
Ops: images and fonts are not content-hashed. Replacing a file under the same name reaches returning visitors up to a day late — give it a new name. Documented in apps/site/README.md. Same rename rule applies to studio public images once #362 is live on the host.
Tests: packages/capabilities/test/static-cache.test.ts; site apps/site/test/worker.test.ts; studio apps/control-plane/test/spa.test.ts (chunk / image / shell / shell-as-/assets/gone). Live staging curl after merge still recommended (/assets/*.js → immutable, / → still max-age=0).
Legal footer and draft Terms / Privacy (#536, merged)
Landed on main in #536 (merged 2026-10-06 ~18:44 IDT by yoni-monday). It restores the Terms and Privacy pages first written in #465 (merged into chat-fine-tunnings, studio SPA files) and puts them in apps/site, where marketing lives after the site/studio split. Before #536, main had neither page. Once deployed: https://itsbrilliant.ai/terms and https://itsbrilliant.ai/privacy (staging: brilliant.rocks/terms, /privacy).
These are drafts, not final binding legal documents. Counsel finalization is tracked in #537.
| Piece | Behaviour |
|---|---|
| Routes | apps/site/src/routes/terms.tsx, privacy.tsx → page bodies in src/marketing/terms.tsx, privacy.tsx, rendered by src/landing/LegalDocument.tsx. Prerendered HTML, own title (Terms & Conditions · Brilliant, Privacy Policy · Brilliant), description, apex canonical. Not studio paths (no 308). |
| Footer | LandingFooter (LEGAL_LINKS) rendered by MarketingShell on every marketing page, the home landing, and ad landing pages: hideNav hides site navigation, not the legal links. No header nav change, no studio routes. |
noindex while drafts | PageMeta.noindex: true on both entries in src/content/pages.ts. Contract page-noindex-reaches-head: seoFor passes the flag through so the <head> carries meta robots noindex and the build checks it. |
| Sitemap | Contract sitemap-lists-only-indexable-pages: sitemapXml (build/artifacts.ts) lists only organic pages whose seoFor(path).noindex is false, so the drafts stay out. Ordinary pages (e.g. /pricing) stay indexable. |
| Content | Original #465 draft copy, visible "Draft, pending legal review" notice, bracketed placeholders (legal name, contracting entity, governing law, retention, providers, minimum age, contacts, fees) for counsel. |
| Tests | apps/site/test/legal.test.tsx (prerendered noindex routes, heading + draft notice, footer links, sitemap exclusion, pricing still indexable); artifacts.test.ts, routes.test.ts updated. |
Update (#968, merged 2026-10-15): /terms no longer carries the draft notice or placeholders; it is adapted from monday.com's Terms of Service and names monday.com Ltd. as the contracting entity. It stays noindex and out of the sitemap until legal signs off (#537). /privacy was already published without notice or placeholders.
Publishing the final text: once counsel signs off, replace the copy and drop noindex from the two entries in apps/site/src/content/pages.ts (also noted in apps/site/README.md); the sitemap picks them up automatically.
Not live-verified in the PR: checked against a locally built Worker (desktop and phone), no side env or staging/prod deploy. Verify on staging after the next deploy.
Local Path 1 (marketing pages)
Designers running the studio against staging can also run the site locally (#416, merged 2026-10-04):
cd apps/site && bun run devOpen http://localhost:5176. Content lives in apps/site/src/content/; see apps/site/README.md for adding pages, use cases, or campaigns. Locally /v1/suggestions returns 503 (no control-plane binding on the site dev server); default suggestion cards still render. Full Path 1: Getting started.
Related
- Use cases content model (historical SPA paths; live pages are on
apps/site; #401 merged 2026-10-04 deleted studio marketing routes): Marketing Use cases pages - Control plane & studio · Hosting & Pulumi · Secrets & environments · Verify & ship · Side environments · Monorepo layout · Architecture
- Plan:
docs/plans/marketing-site.mdonmain - PRs: #318 (merged 2026-10-02) · #347 (merged 2026-10-03 — image preload + site Worker cache headers) · #362 (merged 2026-10-03 — shared
staticCacheControlon site + studio) · #360 (merged 2026-10-03 — cutover step 1) · #361 (merged 2026-10-03 — cutover step 2 domain flip) · #367 (merged 2026-10-03 — shared base CSS → studio-ui, closes #314) · #365 (merged 2026-10-03 —useRevealreduced-motion hydration) · #364 (merged 2026-10-03 — visitor BI ingest, closes #321) · #387 (merged 2026-10-04 — cutover hardening: CONTROL_PLANE_URL from origins.studio, workers.dev probes/carry-forward, fail-hard site deploy, site-build verify) · #388 (merged 2026-10-04 — prod domain flip:itsbrilliant.ai→ site,app.itsbrilliant.ai→ studio; mirrors #361) · #400 (merged 2026-10-04 — session-cookie host-prefix read gate) · #401 (merged 2026-10-04 — delete studio marketing/landing; signed-out always → sign in) · #416 (merged 2026-10-04 — local Path 1: site on 5176 +VITE_LIVE_APP_DOMAIN) · #465 (merged 2026-10-05 intochat-fine-tunnings/ #394, notmain— legal footer + draft/terms//privacy; studio SPA files) · #536 (merged 2026-10-06 — draft/terms//privacy+ legal footer restored inapps/site,noindex+ out of sitemap; counsel review #537)
Brand logo for the Auth0 login (#483, merged)
Landed in #483 (merged 2026-10-05; moved there from #484 so the file is served before the theme references it): apps/site/public/brand/brilliant-logo.svg, the studio BrandMark lockup. The site serves it at https://brilliant.rocks/brand/brilliant-logo.svg (later on itsbrilliant.ai too), and the non-prod Auth0 login theme (re-landed on main in #487, merged 2026-10-05) loads it in the user's browser as the widget logo. Don't move or rename it without updating auth0.loginBranding.logoUrl in the stack config; an infra test fails if the configured file is missing from apps/site/public. Details: Secrets and environments.
Landing uses shared composer pieces (#699 merged)
Merged #699 (2026-10-10, follow-up to #688): the marketing landing and use-case pages now render the shared @brilliant/composer hero, prompt, chips, template cards, Feedback and scroll helper. The site keeps its own /start prompt handoff, Show all, Watch demo, and use-case/campaign metadata.
- Routing trap: public template images (
png|jpe?g|webp|svg, matching Studio) are served directly from the site's own assets before the Studio redirect. Template API requests and non-GET/HEAD methods still redirect to Studio. The old redirect-only path worked in prod but left blank cards locally and added a cross-origin hop. - Tests: real-Chromium/StrictMode coverage for Show all →
/start, use-case hero/send analytics, and cancelling a pending card fill on edit; card selection uses accessible names. Real-file GET/HEAD checks cover the template screenshots plus API/write redirect regressions.
Model and effort survive the /start handoff (#802 merged)
Merged #802 (2026-10-11): the model and effort picked on the marketing composer now carry through /start fragment → Studio Home prefill → the first studio prompt. Before, Home restored the prompt and integrations but reset to Default / Balanced.
- Home drives the shared composer's model/effort selection via controlled props and validates restored values against the existing model catalogue; invalid choices fall back to defaults. Other composer callers (marketing, project) keep their internal state.
/startstill only prefills. Nothing is created until the user explicitly presses Send.- No API, storage format, or model catalogue change.
Stable TanStack Start 1.169 pins (#917, merged)
PR #917 (merged 2026-10-14 12:44 IDT by yoni-monday, merge b42f18a5) pins apps/site to @tanstack/[email protected] and @tanstack/[email protected] (was 1.168.49 / 1.170.32). Same pins land in the app template manifests. Studio/admin SPA router range and router-cli are unchanged. The marketing site worker picks up the new Start on the next deploy; published generated apps are unaffected until republish.
Full pin table, rollout, and advisory note: Template & app data — Stable TanStack Start 1.169.
Site and login redesign from Figma (#944, merged)
PR #944 (merged 2026-10-15 11:16 IDT by yoni-monday, merge 76b2873f, head 00429c24, branch login-screens) rebuilds the marketing site and the login/sign-up screens from the Figma file. The new login screens shipped off in that PR; #951 turned them on for staging (prod still off). Visitors see the new site pages on main. The design record is docs/plans/landing-login-redesign.md in the repo; Figma is the source of truth for layout and copy.
Site pages (apps/site)
| Path | What it is |
|---|---|
/ | Hero with an empty prompt box (no model picker), up to 5 suggestion chips while typing, "Made for you" cards that follow the text. Mobile has no chips; "Connect your tools" sits under the box. Rotating placeholder examples + instant static chips/templates: #968 (merged). |
| Header | Logo, Use cases mega menu (departments left, three cards for the hovered department, content from apps/site/src/content/use-cases), Contact us, See plans, Log in, Sign up. |
/pricing | Figma plans: Free Trial, Pro $49, Business $199, Enterprise. Credit amounts come from the billing catalog. Free Trial no longer lists "Unlimited builders" / "Unlimited end users" (#968, merged). |
/use-cases, /use-cases/<dept>/<case> | Figma index (breadcrumb, title, tabs, cards) and detail page (Share, "Use this app" to /start, What's inside). See Marketing use cases. |
/contact | "Talk to us" form, posted to the team's signup Slack channel via POST /api/contact (#incoming in the brilliant.ai workspace since #993, merged; live after the prod deploy; a token and channel mismatch returns 502). Same ContactSection also sits at the bottom of / since #968 (merged; use-case /lp pages stay without it). Since #980 (merged) the text sits above the form at every width and the section is gone from / again; only /contact has it. |
/enterprise, /resources, /security, /community | Removed. 301 to /, query string kept, trailing slash tolerated (removedPageRedirect in apps/site/src/worker/routing.ts). |
Prompt suggestions while typing
- Chips come from a new
POST /v1/prompt-suggestions(body{ text, sources }, answer{ chips: [{ id, label, prompt, tools }] }, at most 5), generated by a fast model in the prompt's language. Cards use the existing/v1/suggestions, which gains aPOST { q, sources }form so typed text never sits in a URL. The site proxies both to the control plane. - Fires after an 800 ms pause with at least 3 words; a newer pause aborts the older request; failure keeps the current chips. A chip click replaces the typed text.
- Anonymous calls are rate limited per IP (a missing limiter means fallback, never an unmetered model call), text capped at 2,000 characters, 2.5 s timeout with catalog-ranked chips as the fallback. A model problem never returns a 5xx. The text is never logged or stored, and this one gateway call opts out of request logging. The privacy page gains a sentence about it. Studio Home uses the same typed suggestion chips; the no-signal default row differs after #955.
Login and sign-up (Auth0 ACUL; on for staging)
- New
apps/login: our own React screens rendered by Auth0 Advanced Customizations for Universal Login (ACUL) on the custom login domain. Screens owned:login-id,signup-id, andlogin-passwordless-email-code. Credentials stay on Auth0. - Planned connections are Google plus an emailed one-time code (Auth0 Passwordless
email); entering the code proves the address, so there's no separate verification screen. An email whose account uses Google is told "This email signs in with Google" only after the code is entered, so nothing leaks which emails have accounts. Prod keeps its password connection until its own flag flips; the studio client only leaves it once the email-code connection is bound. - The bundle is built into the site at
/login-ui/with amanifest.jsonlisting script and stylesheet URLs with sha384 hashes (served with CORS). Fonts travel inside the stylesheet, so no third-party request loads on the login page. #951 keeps every file ever served (aretainedlist in the manifest, capped at 300), so the infra apply and the site deploy can run in any order; deploy builds fail rather than drop a file Auth0 may pin. /auth/loginnow acceptsPOST(the prompt rides in the body, never our URLs),screen=signup,ext-tools, andext-prompt(first 200 characters, rendered escaped; Auth0 sees and logs it, which was accepted). A nonprod-onlyconnection=hint keeps staging e2e users on their password identities.- Signup after #951 still sent
screen_hint=signup; with password sign-ups disabled, that started a password sign-up and failed. #954 (merged 2026-10-15 12:43 IDT) landed the fix: email-code signups sendext-screen=signup, and in nonprod plain login namesconnection=email; an explicitconnection=hint still wins and keepsscreen_hint. Details: Control plane — email-code login defaults. - One identifier screen (#954, merged):
login-idshows signup copy whenext-screenissignup. Without Auth0's signup link (the email-code flow), the Log in / Sign up switch flips the copy in place instead of opening the passwordsignup-idscreen. - Google after the email default (#957, merged 2026-10-15 14:31 IDT): Auth0 refuses a switch to Google inside
connection=email, so Continue with Google did nothing on staging after #954. The fix restarts the login on Google viaext-google(studio hosts and login paths only;keep=1keeps the/startstash, MCP return, and invitation). It takes effect onceinfra.ymlis re-run after the staging deploy. Details: Control plane — Google restart. - Prompts and tools reach the screen encoded (#957): Auth0 400s the whole login when any
ext-*value has punctuation, so the prompt now travels base64url-encoded and tools are space-separated; an app name loses its apostrophes and other punctuation. Details: Control plane — ext-param encoding.
After sign-in
- The landing hand-off stash moves from sessionStorage to localStorage with a 60-minute expiry, so it survives a link opened in another tab.
/auth/callbacksets a one-time, host-only new-account cookie (10 minutes) only when the sign-in created the user and founded its tenant. Only then does/startbuild the prompt without a click; any other account gets the prompt filled in and waits for Send. Same behavior is described in the repo'sgotchas/site.md.
Turning the screens on is the brilliant-infra:loginScreens Pulumi key (staging turned on via #951, but its hand-typed client id matched nothing, so staging still got the standard page until #954 (merged) fixed the filter to use the stack's studio client; prod: #969 added a prod block with enabled: false and the owner rollout runbook, and #974 (merged 2026-10-15 21:00 IDT) flipped it to enabled: true with the Cloudflare SMTP provider; live once the prod infra dispatch applies). See Hosting & infra — ACUL login screens flag and Login bundle history. Endpoint summary: Control plane — site endpoints from #944.
Evidence in the PR: side env brilliant-site-loginux pixel-checked against Figma at 1920/1726 and 375 (Inter stands in for the unlicensed Saans font), and bun run verify green.
Landing default chips carry no integrations (#955, merged)
PR #955 (merged 2026-10-15 13:22 IDT by yoni-monday, merge 4de38e33, head 9a225748, branch landing-chips-no-tools) splits the no-signal default chip row so the signed-out landing never fills the box with tools a visitor has not connected.
| Placement | Constant | Behaviour |
|---|---|---|
Landing (placement === "landing") | LANDING_QUICK_USE_CASES in packages/composer/src/copy.ts | Same labels and order as the studio set; each prompt names no tools (tools: [], no [@…] / {id} mentions). |
| Studio home / use-case pages | DEFAULT_QUICK_USE_CASES | Unchanged — still carries integrations into the box and through /start. |
useLandingPrompt picks the set from placement. A ranked live set from /v1/suggestions or typed /v1/prompt-suggestions can still lead with tool-carrying cards; only the no-signal catalog fallback on the landing is tool-free.
Evidence: packages/composer/test/landing-default-chips.test.ts; apps/site/test/landing-prompt-section.test.tsx asserts a default chip click leaves no @ source chip in the box.
Blast radius: signed-out landing default chip row only.
Signed-in visitors leave home for the app (#966, merged)
PR #966 (merged 2026-10-15 15:32 IDT by yoni-monday, merge 2610fa6b, head f58ae298, branch site-signed-in-redirect) sends a signed-in visitor who hits the marketing home straight into the studio. Signed-in people can no longer see the landing at /.
| Request | Behaviour |
|---|---|
GET / with cookie brilliant_signed_in (and no ?c= campaign) | 302 to APP_ORIGIN/ (Cache-Control: no-store, Vary: Cookie) |
GET / without the cookie | Landing page, as before |
/pricing, /use-cases, /contact, legal, /?c=…, UTM-only queries on other paths | Unchanged for everyone |
The hint is the same parent-domain cookie the control plane already writes on sign-in and clears on sign-out (session-cookie.ts, SITE_COOKIE_DOMAIN when the studio is app.<site>). It is a hint, not proof: if it outlives the session, the app shows its own login. Home only — every other marketing page stays readable so signed-in people can still open pricing, use cases, contact, and campaigns.
Code: apps/site/src/worker/handle.ts (before the ?c= campaign branch). Tests in apps/site/test/worker.test.ts cover redirect with the hint (including a UTM query), no redirect without it, and other pages / ?c= left alone.
Blast radius: site home (two-way door, easy to revert).
Landing QA: instant chips, cycling placeholder, contact, terms (#968, merged)
PR #968 (merged 2026-10-15 15:42 IDT by yoni-monday, merge c5a2f928, head fe8adfb2, branch landing-qa-amichay) lands Amichay's landing QA on the signed-out marketing home. Studio home is unchanged: instantDefaults is on only when placement === "landing".
| Surface | Behaviour |
|---|---|
| Chips + template cards | With useLiveSuggestions(…, instantDefaults) and no signal (no sources, no qualifying typed text, no ?q= / ?industry=, no refresh), the landing draws static catalog defaults on first paint: no /v1/suggestions request and no skeleton. Typing, picked sources, or query params still load. |
| Composer placeholder | Empty box cycles three examples every 3.5 s (LANDING_PLACEHOLDER_EXAMPLES / useCyclingPlaceholder): "Let's build a CRM for a team of…", "Build an IT ticket system…", "Build a landing page for my event…". First example is the prerender / reduced-motion value; once the visitor types, the cycle stops for good on whichever example was showing. |
| Landing bottom | Reuses ContactSection from /contact with heading="h2" (page already has its h1). Use-case / /lp placements do not get it. Reverted by #980 (merged): the owner meant the contact page, not the landing, so / no longer has a contact section. |
| Pricing Free Trial | Feature list drops "Unlimited builders" and "Unlimited end users" (paid plans keep builder counts). |
| Terms | Draft notice and every bracketed placeholder removed. Text adapted from monday.com's Terms of Service (page dated May 05, 2026, fetched 2026-10-15); "last updated" is October 15, 2026. /terms stays noindex until legal signs off. Privacy was already published (no notice, no placeholders) and is unchanged. |
What the Terms took over from monday.com's ToS: contracting entity and address (monday.com Ltd., 6 Yitzhak Sadeh St., Tel-Aviv 6777506, Israel; affiliate monday.com Inc., NY), age 16+, customer-data ownership and licence (3.1, 3.2), fees/taxes/renewal (8.3, 8.4), 30-day first-purchase refund (9.1), trials (10), termination/export/read-only (11), liability cap of 12 months' fees (14), indemnities (16), Israeli law and Tel Aviv-Jaffa courts (21.1), notice of changes (19), General Counsel notice address [email protected] (22.4). Brilliant-specific parts kept: AI app builder, published apps, credits and plans.
Legal must still review (counsel tracking: #537). Not carried over: class-action waiver and ICC arbitration (21.2–21.3), confidentiality, export controls, government use, Third Party Agents, SLA and the other numbered sections. The 30-day refund and Israeli jurisdiction are monday.com's policy applied to Brilliant, not a separate Brilliant decision.
Code: packages/composer (use-suggestions.ts, use-cycling-placeholder.ts, use-landing-prompt.ts, copy.ts, LandingComposer.tsx); apps/site (LandingPageLayout, LandingComposer, marketing/contact.tsx → extracted ContactSection, pricing.data.ts, terms.tsx, LegalDocument.tsx).
Tests: site landing-prompt-section (instant first paint with zero requests, rotating placeholder, reduced motion), contact-form, legal, pricing-page; control-plane web use-suggestions (instantDefaults). bun run design-suite --changed, biome ci, file-size and knip clean.
Blast radius: marketing site + composer's suggestions hook (two-way door).
Contact page stacks text over form; landing drops the contact section (#980, merged)
PR #980 (merged 2026-10-15 21:29 IDT by yoni-monday, merge 63544593, head 3a3f2b04, branch contact-stacked) corrects a misread in #968: the owner asked for the contact change on the contact page, not the landing.
/contact: the "Talk to us" heading and bullets now sit above the form at every width. The desktop side-by-side row (Figma 806:59144's two halves) is gone; the form keeps its 600px max width./: the "Talk to us" section #968 added at the bottom of the landing is removed.ContactSectionis no longer exported and always renders its ownh1, since only/contactuses it.
Code: apps/site/src/marketing/contact.tsx, apps/site/src/landing/LandingPageLayout.tsx. Tests: apps/site/test/contact-form.test.tsx checks the text comes before the form, there is no lg:flex-row, and / has no "Talk to us"; site contact and landing tests: 30 pass.
Blast radius: layout of /contact and the landing's bottom section (two-way door).
PostHog in the browser and the did handoff (#977, merged)
#977 (merged 2026-10-15 21:25 IDT by yoni-monday, merge 13576e01) is step 5 of the PostHog stack. It changes how the site counts visitors and hands them to the studio, so where the /start hand-off and Attribution & cookies sections above disagree with this one, this section is current.
- posthog-js on the site. The site sends its events and pageviews straight to PostHog; the worker's
/api/biproxy is removed along withPOST /api/bi. It usesperson_profiles: "always", because withidentified_onlyanonymous landing events would never merge into the user. Nothing else is on: no recording, autocapture, heatmaps, surveys, exception capture or flags request. didreplacessid. The site hands its PostHog id to the studio asdidin the/start#…fragment. Every way off the site goes through/start, including the header's Log in and Sign up, and the payload gained ascreenfield. The studio starts fromdidonly while the visitor is still anonymous (never over an identified user) and accepts only a UUIDv7, so a crafted link can't write into a real person. A browseridentify(user.id)after sign-in merges the landing events into the user.- Only attribution survives on the URL.
$current_urlkeepsutm_*,gclid,li_fat_idandc; every other query key, the fragment, and referrer queries are dropped. - No cookie and no localStorage entry. The id lives in the tab's
sessionStorage(decided with the lead), so no consent banner is needed for this change. The cost: a new tab is a new visitor, and there is no shared site and studio cookie, so the/startfragment is the only link. A persistent id is where consent has to be decided (repodocs/plans/marketing-site.md, decision 6a). - Token. It reaches the site build the same way as the studio's (base config is staging,
deployedVarsper environment). A build with no token starts nothing.
A live landing-to-signup run on a deployed env had not been done at merge time. Design notes, tradeoffs and what is still unverified: PostHog — Step 5 (#977, merged).
Shared PricingCard with studio Plans (#989, merged)
PR #989 (merged 2026-10-17 08:27 IDT by yoni-monday, merge 3b46067e) introduces a presentational-only PricingCard in packages/studio-ui, shared by marketing /pricing and studio Settings › Plans. Catalog amounts still drive the live numbers.
The /pricing restyle is not behind a flag and ships on the next site deploy: no brand-wash frame, no gradient badge, no card shadow; the studio's border-and-wash-tag look instead. Design sign-off was still pending at merge. Full product behaviour: Studio billing UI (#989).
www redirects to the apex (#997, merged)
PR #997 (merged 2026-10-17 08:32 IDT by yoni-monday, merge 4aef8c6c) makes www.<site> a 301 to https://<site><path> (query string kept) whenever the marketing site lives on an apex, so www.brilliant.ai goes to brilliant.ai and www.brilliant.rocks to brilliant.rocks. The site worker never sees www traffic: the redirect is a Cloudflare zone rule declared in Pulumi. Before this, www.brilliant.ai was a Cloudflare 521. It takes effect only after the infra apply (staging first, and prod needs a hand-made www A record deleted first). Details and rollout: Hosting & Pulumi — www redirects to the marketing apex (#997).
Crawl metadata, AI crawlers and security headers (#1013, merged)
PR #1013 "SEO/GEO easy wins for the marketing site" (merged 2026-10-17 23:22 IDT by yoni-monday, merge 200c1e27) makes the marketing site easier for search engines and AI assistants to read. Nothing was deployed by the merge, and pulumi up was not run, so live behaviour changes only after the next site deploy and infra apply. Pricing feature lines, the Plans H1 and the SSO wording are unchanged; those copy fixes were left out on purpose.
What the site build and Worker now do:
robots.txtallows AI crawlers. An indexable build (INDEXABLE=true, prod) writes arobots.txtfromapps/site/build/artifacts.tsthat explicitly allows GPTBot, ClaudeBot, Google-Extended, Amazonbot, PerplexityBot and the rest of the list Cloudflare's managed file used to disallow. A non-indexable build (staging) is stillDisallow: /for everyone, so staging stays out of search. There is no Content-Signal line. The matching Cloudflare zone change is in Pulumi: Hosting & Pulumi — AI crawlers allowed (#1013)./llms.txt. Written only by an indexable build, fromPAGESandPRICING_PLANS; a non-indexable build deletes any leftover file. The intro names work apps the site actually shows (a CRM, a deal pipeline, an OKR tracker, a service desk), and the plan line readsFree Trial, Pro $49/mo, Business $199/mo, Enterprise Custom. It makes no coming-soon claims.- JSON-LD on every page.
apps/site/src/lib/head.tsadds Organization and WebSite to every page./pricingalso gets SoftwareApplication with Offers built fromPRICING_PLANS: Enterprise is left out because its price is Custom,/moplans (Pro, Business) carry aUnitPriceSpecification(billingDuration: P1M,unitCode: MON) so they aren't read as one-time prices, and Free Trial is0with no price specification. No ratings, reviews or certifications are claimed. Prices come from the catalog, so a catalog change updates the structured data too. - Sitemap
lastmod.PageMetahas an optionallastModified(YYYY-MM-DD). It is emitted only when set and only if it's a real calendar day. Only/contactis dated (2026-10-17); set it on a page when its content or description really changes. /contactdescription is now "Talk to the Brilliant team about Enterprise pricing, a demo, or building work apps on your HubSpot, Zendesk and monday.com data."- Security headers from the site Worker.
apps/site/src/worker/handle.tsaddsStrict-Transport-Security: max-age=15552000(six months, noincludeSubDomains, no preload),X-Content-Type-Options: nosniffandReferrer-Policy: strict-origin-when-cross-originto every response it produces, including static files and redirects. Other Workers don't get them. Zone HSTS inzone-https.ts(one year,includeSubdomains) is separate and wasn't on live responses on 2026-10-17; once it's applied a response can carry both headers. #1015 (merged 2026-10-18) applies the same zone settings to the published-apps zone, but withincludeSubdomainsoff: Hosting & Pulumi — apps zone HSTS. www. No new redirect code: #997 already declares the 301. As of 2026-10-17www.brilliant.rocksalready 301s to the apex, whilewww.brilliant.aistill returns 521 until the hand-made A record is deleted and prod is applied.domain-cutover.test.tsnow fails if awwwA record is added in code.
Landing direction (design, 2026-10-19)
Brilliant Daily, 2026-10-19 (Amichay, Dan), Slack #brilliant-ai ts 1792398743.018189. Design direction, not on main yet:
- Keep the industry tiles concept, but with a few of our own use cases instead of a long industry list.
- The hero prompt box needs more contrast.
- Below the hero, stack contact, "a monday.com company" and integrations. (Today
/has no contact section since #980.) - Repeat the prompt box at the bottom of the page, possibly floating.
- Brand story "the finish": hero images show a pro placing the final touch (a chef's last leaf, a builder's last brick, an athlete's last hundredth), each from a different world.
Decision record: Product & growth decisions (2026-10-19).