Skip to content

feat(tofu): serve the web basemap from an r2 bucket on tiles.maroonrides.app - #5

Merged
bwees merged 1 commit into
mainfrom
feat/map-tiles-r2
Nov 14, 2026
Merged

bwees merged 1 commit into
mainfrom
feat/map-tiles-r2

Conversation

@bwees

@bwees bwees commented Nov 14, 2026

Copy link
Copy Markdown
Member

Cloudflare Pages ignores Range headers, which PMTiles needs. The web build reads the basemap from R2 instead.

  • maroonrides-map-tiles R2 bucket, public on tiles.maroonrides.app
  • CORS allows GET/HEAD with Range from any origin, and exposes ETag/Content-Range/Content-Length
  • The Pages deploy token also gets object write on that bucket (in-place update, same token value)
  • MAP_TILES_BUCKET and MAP_TILES_URL Actions variables on Maroon-Rides/MaroonRides

Note: CI applies are failing on the Contabo secret 500, so this needs a targeted apply (-target=module.pages_web) until that's fixed.

Consumer: Maroon-Rides/MaroonRides#227

@bwees
bwees merged commit bb086e6 into main Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant