Skip to content

Commit

Permalink
update cloudflare docs: don't need npm install in js/ anymore. (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon authored Jan 14, 2025
1 parent 2c74c37 commit 158c428
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions deploy/cloudflare.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 158c428

Please sign in to comment.