Files
PMTiles/serverless/cloudflare
Brandon Liu e678dd5326 Pmtiles js v4 (#499)
* pmtiles js v4: remove pmtiles spec v2 compatibility [#287]
* restructure ts files into src
* add tsup for building ESM/CJS and making types work in ESM
* bump fflate dependency
* update CHANGELOG for js 4.0.0
2024-11-26 11:56:41 +08:00
..
2024-11-26 11:56:41 +08:00
2022-11-23 14:25:17 +08:00

Protomaps on Cloudflare

See installation and configuration instructions at Protomaps Docs: Deploy on Cloudflare

Development

Web Console (basic)

Generate the Workers script using npm run build and copy dist/index.js to the editor.

Wrangler (advanced)

The preview_bucket_name value in wrangler.toml should be changed to your bucket used for development.

Run npm run start to serve your Worker at http://localhost:8787. The cache will not be active in development.