From 5ea9927089fa75ffafba72594e6e29e52eb21210 Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Sat, 30 Jul 2022 11:45:10 +0800 Subject: [PATCH] Update README.md --- serverless/cloudflare/README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/serverless/cloudflare/README.md b/serverless/cloudflare/README.md index fa852fe..1ad9111 100644 --- a/serverless/cloudflare/README.md +++ b/serverless/cloudflare/README.md @@ -4,7 +4,11 @@ Use [rclone](https://rclone.org/downloads/) to upload your PMTiles archives to a # Getting started -* Generate `worker.js` with all dependencies bundled: +Bundled single-file worker with all dependencies: + +[protomaps.github.io/PMTiles/worker.js](https://protomaps.github.io/PMTiles/worker.js) + +To generate `worker.js` from a checkout: ```sh git clone https://github.com/protomaps/PMTiles @@ -20,7 +24,7 @@ By default, your worker will serve tiles at path `NAME/0/0/0.pbf` using the arch This behavior can be customized with two optional environment variables: -`PMTILES_PATH` -`TILE_PATH` +`PMTILES_PATH` - optional. +`TILE_PATH`- optional. +`CORS` - optional. -(TODO)