A reseed gives every event a new id without listing the old ones in the feed's `deleted`, and consumers only fetched ?updatedSince= after the first sync, so the old copies stayed beside the new ones. - Both: the 15-minute feed poll and "Sync now" fetch the whole list and drop copies that aren't in it; the fetch after event.changed stays incremental. - Events set-demo.js keeps FeedEntry and marks its live entries removed, resets the links' lastGoodAt, then publishes the new feed, sends event.changed and fetches the linked products' events back in. - Website loadDemo lists the old published events in FeedRemoval and sends event.changed after publishing. - Website header: links to the church's other sites read "Events site" with an external-link icon, not a second "Events". Checked: Website backend tests (133), Events backend tests (802), both typechecks, Website frontend build. set-demo.js not run end to end (no local database). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Church Website
The church's public website and its admin (ROADMAP-v3 §6, phase 5; plan and decisions in
docs/WEBSITE-1.0-PLAN.md). Served at www.<church's address> (or
<church>.crosscode.co.za), with the admin at /admin, signed in through the church's Accounts.
The church picks one of four templates (Heritage, Bold, Community, Clean) and makes it its own with
section variants and style settings. Changes are drafts until an editor previews the whole site and
presses Publish; until the first publish visitors see Coming soon.
State: being built (2026-11-25): signing in through Accounts, the four templates and the public
site, the admin (editing, preview, publish, discard, restore, shared previews, media), and the demo
church, people and roles, messages (with the YouTube feed), simple events and the event feed with
Cross Events. Still to come: the Hub's "Get more storage", Lighthouse and the VM test. Not released;
website@1.0.0 is tagged when the plan is built.
Signing in (backend/src/auth/): the Website registers with the Hub (its install id is its
client id at Accounts), links itself to the church's Accounts once the Hub lists it, and signs
admins in through @crosscode/auth-client. Roles are the Website's own; the first Owner is whoever
signs in with the Hub's admin email (HUB_ADMIN_EMAIL), verified in Accounts. Locally, set
LINKS_ALLOW_PRIVATE=true to link to an Accounts on http://localhost.
backend/: Express + Prisma (ES modules), as Accounts.npm run dev,npm test(Node's test runner through tsx),npm run build. The content model is inprisma/schema.prisma; the section variants per template (plan §3, decision 16) insrc/site/variants.ts.frontend/: Next.js 16. The public site (server-rendered from the latest published version) and the admin.
Local development: Postgres in backend/.env (DATABASE_URL, WEBSITE_URL=http://localhost:3300),
npx prisma migrate deploy, then npm run dev in both folders (the frontend runs on 3300 and sends
/api to the backend on 5300).