- Duplicate the
.env.examplefile to a new.envfile, and update the environment variables
cp .env.example .env- Install dependencies
pnpm install- Development
# Run the development server
pnpm devTo test directly on your phone, you can run the following command and scan the QR code:
pnpm dev --hostTo test the production build locally, run the following commands:
pnpm run build:node
pnpm run previewpnpm test:e2eThat is the whole thing. It builds the site with the node adapter, serves it on port 4329, runs the suite against it, and shuts down. The first run downloads Chromium (~150MB); later runs do not. No environment variables and no secrets are needed.
To run against something already deployed instead of building locally:
E2E_BASE_URL=https://your-preview.vercel.app pnpm test:e2eE2E_BASE_URL is the only switch. When it is set, nothing is built and
nothing is served β the suite just points at that target.
Eleven specs, deliberately thin. Eight run over plain HTTP with no browser at all, which is sound here because the site has no client-side router: following a link over HTTP is equivalent to clicking it. The three that do launch a browser cover the only things that are not β the search palette, the attendee form, and the nav menus, whose links do not exist until their island hydrates.
Assertions are structural β status codes, content types, a non-empty title, a floor on rendered text or image size. They never mention actual content, so adding an event or a person does not break them. URLs come from the sitemap rather than a hard-coded list, so new content is swept automatically and drafts are excluded for free.
A local run serves the site through the node adapter. CI runs against a real Vercel preview. Vercel-only behaviour therefore cannot be covered locally and is skipped:
- the ~20 redirects in
vercel.json, which are applied at Vercel's edge - ISR, and Vercel's image service
So a local pass means "nothing is broken in the app", not "nothing is broken in production". CI is the authority.
The workflow is triggered by Vercel's deployment_status, not by the pull
request, because the preview URL is only known once Vercel has finished β and
because a deployment_status workflow can read secrets on Dependabot pull
requests, which is exactly where this suite earns its keep.
No secret is needed as things stand: preview deployments on this project are
publicly reachable. If Deployment Protection is ever switched on, every
request will start returning 401 β at that point generate a bypass token in
Vercel (Settings β Deployment Protection β Protection Bypass for Automation)
and add it as a repository secret named VERCEL_AUTOMATION_BYPASS_SECRET.
The workflow already passes it through and the suite already sends it as a
header when it is present, so nothing else needs changing.
One consequence worth knowing: because the run is tied to a deployment, it reports nothing at all when Vercel does not deploy. If this is ever made a required status check, a pull request in that situation cannot be merged without an admin bypass.
Inside the project, you'll see the following folders and files:
/
βββ components.json # Component registry/configuration
βββ e2e/ # End-to-end tests (Playwright)
βββ package.json
βββ public/ # Static assets (served at site root)
βββ scripts/ # Utility scripts for development
β βββ generate-routes.ts
βββ src/ # Main source code
β βββ content.config.ts # Astro content configuration (https://docs.astro.build/en/guides/content-collections/)
β βββ routes.gen.ts # Auto-generated routes for improved type safety
β βββ @types/ # TypeScript custom type definitions
β βββ assets/ # Source assets (images, etc.)
β βββ components/ # Astro/React UI components (basics are from shadcn/ui)
β βββ content/ # Content files (e.g., markdown, data)
β βββ generated-assets/ # Helper to automatically generate assets (og-image, marketing posts)
β βββ hooks/ # Custom hooks
β βββ i18n/ # Internationalization files
β βββ layouts/ # Layout components/templates
β βββ lib/ # Utility libraries/helpers
β βββ pages/ # Astro/MDX pages (routes)
β βββ schemas/ # Content schemas
β βββ styles/ # Global and component styles
Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.
There's nothing special about src/components/, but that's where we like to put any Astro/React components.
Any static assets, like images, can be placed in the public/ directory.

