This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is the Wye & Welsh Land Rover Club (WWLRC) website, a statically exported Next.js site deployed via FTP.
bun run dev # Start development server
bun run build # Build static export (outputs to /out)
bun run lint # Run ESLintAlways run bun run build before pushing to ensure static export works correctly.
The site uses Next.js with output: 'export' (configured in next.config.mjs), generating a fully static site in the /out directory. This means all data fetching happens at build time.
The site fetches data from the club's management system at spanner.wwlrc.co.uk. The API client is in src/spanner/:
api.ts- Base fetch wrapper usingpathcatfor URL constructionwwlrc.ts- Club-specific constants (club ID, Facebook link)events.ts- Fetches rally/event datablog.ts- Fetches news posts
Data is fetched at build time in page components (e.g., getPosts() in src/app/page.tsx).
src/app/- Next.js App Router pages (home, about, join, events, sponsors)src/components/- Shared React components (navbar, footer, calendar, blog)src/spanner/- API client for Spanner backenddeployment/- Contains htaccess config copied to output during deploy
CI/CD via GitHub Actions (.github/workflows/build-deploy.yml) builds and uploads to FTP on push to main.