Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading