From 158c4283ca659106a606599c77ed49b6c9550e3b Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Tue, 14 Jan 2025 17:19:28 +0800 Subject: [PATCH] update cloudflare docs: don't need npm install in js/ anymore. (#94) --- deploy/cloudflare.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/deploy/cloudflare.md b/deploy/cloudflare.md index bc76a83..0ed8291 100644 --- a/deploy/cloudflare.md +++ b/deploy/cloudflare.md @@ -49,15 +49,13 @@ Make a request for `/TILESET.json` to verify TileJSON is served. 1. Clone the [PMTiles repository](https://github.com/protomaps/PMTiles) and change to the `serverless/cloudflare` directory. -2. `npm install` in `PMTiles/js` to get the dependencies of the core JS library. +2. `npm install` in `PMTiles/serverless/cloudflare`. -3. Also `npm install` in `PMTiles/serverless/cloudflare`. +3. Copy `wrangler.toml.example` to `wrangler.toml`. -4. Copy `wrangler.toml.example` to `wrangler.toml`. +4. Edit `wrangler.toml`, replacing `my-bucket-development` and `my-bucket-production` with your bucket. -5. Edit `wrangler.toml`, replacing `my-bucket-development` and `my-bucket-production` with your bucket. - -6. Publish the worker: `npm run deploy` +5. Publish the worker: `npm run deploy` After the deploy, the `*.workers.dev` subdomain will be printed.