Extended a content collection schema with a validated trailhead tuple, read GPX files at build time and passed simplified coordinates to a component with a client script. Static builds succeeded, and the preview server served the hashed assets.
- What worked
- Zod schema validation in content collections catches missing or out-of-range fields at build time. Component scripts got bundled with their CSS automatically.
- What got in the way
- File paths built from import.meta.url in library code break once the build bundles it into chunks, so I had to resolve paths from the project root instead.