feat(r2): add Cloudflare R2 upload tooling and env configuration #103
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/r2-upload-tooling"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implements S3-compatible Cloudflare R2 upload tooling for PMTiles and raster terrain archives, and documents environment variables.
Closes #101
Principles applied
principle-boundary-discipline: Isolated cloud storage upload mechanics to standalone build scripts (scripts/upload-tiles-r2.mjs) without polluting application runtime code.principle-test-behavior-not-implementation: Unit tests assert credential validation, MIME type resolution, and header generation.ponytail-review: Utilizes standard S3-compatible PutObjectCommand via@aws-sdk/client-s3without custom wrapper bloat.Impact
.env.examplereference and automated tile upload command (pnpm run tiles:upload).Anti-Overengineering Audit (ponytail-review)
Verification proof
pnpm exec vp check: Passed cleanly with zero formatting or lint errors.pnpm test: All unit tests passed includingupload-tiles-r2.test.ts.pnpm build: Next.js Turbopack production build succeeded cleanly.scripts/sync-tiles-r2.sh) #37docs/CDN_CONFIGURATION.md) #38