The template, in two layers
How it talks to Harp
The site fetches live schedule, sponsor, and FAQ data from the public content API:- Requests carry an
X-API-Keyheader that must match thePUBLIC_API_KEYconfigured on the Go service. - All fetches are server-only (Server Components). Importing the API client into a client component fails the build, and the site can’t be a static export.
- Responses revalidate about every 5 minutes, so organizer edits in the portal reach the public site without a rebuild.
Environment
Deploying
The site deploys to Vercel as its own project, independent of the portal and backend. Set both environment variables for Production and Preview.The marketing template currently lives at
client/marketing inside the harp repo and is being extracted into a standalone hackutd/harp-marketing template repository. Once that lands, adopters will start from the template repo directly instead of the subdirectory.