Skip to content

Commit 158c428

Browse files
authored
update cloudflare docs: don't need npm install in js/ anymore. (#94)
1 parent 2c74c37 commit 158c428

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

deploy/cloudflare.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,13 @@ Make a request for `/TILESET.json` to verify TileJSON is served.
4949

5050
1. Clone the [PMTiles repository](https://github.com/protomaps/PMTiles) and change to the `serverless/cloudflare` directory.
5151

52-
2. `npm install` in `PMTiles/js` to get the dependencies of the core JS library.
52+
2. `npm install` in `PMTiles/serverless/cloudflare`.
5353

54-
3. Also `npm install` in `PMTiles/serverless/cloudflare`.
54+
3. Copy `wrangler.toml.example` to `wrangler.toml`.
5555

56-
4. Copy `wrangler.toml.example` to `wrangler.toml`.
56+
4. Edit `wrangler.toml`, replacing `my-bucket-development` and `my-bucket-production` with your bucket.
5757

58-
5. Edit `wrangler.toml`, replacing `my-bucket-development` and `my-bucket-production` with your bucket.
59-
60-
6. Publish the worker: `npm run deploy`
58+
5. Publish the worker: `npm run deploy`
6159

6260
After the deploy, the `*.workers.dev` subdomain will be printed.
6361

0 commit comments

Comments
 (0)