Skip to content

Commit

Permalink
Merge pull request #101 from radical-data/tiles-in-repo
Browse files Browse the repository at this point in the history
Integrate tile deployment in repo and accept wildcards for allowed origins
  • Loading branch information
jokroese authored Sep 25, 2024
2 parents 41c40e0 + c507039 commit 823975b
Show file tree
Hide file tree
Showing 8 changed files with 2,553 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tiles/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist
wrangler.toml
node_modules
.wrangler
15 changes: 15 additions & 0 deletions tiles/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Protomaps on Cloudflare

See installation and configuration instructions at [Protomaps Docs: Deploy on Cloudflare](https://protomaps.com/docs/cdn/cloudflare)

## Development

### Web Console (basic)

Generate the Workers script using `npm run build` and copy `dist/index.js` to the editor.

### Wrangler (advanced)

The `preview_bucket_name` value in `wrangler.toml` should be changed to your bucket used for development.

Run `npm run start` to serve your Worker at http://localhost:8787. The cache will not be active in development.
Loading

0 comments on commit 823975b

Please sign in to comment.