# Metaserver to monitor map nodes and serve them to clients [![Deploy master to Production](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/organicmaps/meta) ## Requirements Install CloudFlare's wrangler and other dev dependencies using npm: ```bash npm i ``` ## Development Use `npx wrangler dev` for localhost development. ## Preview on workers.dev Use `npx wrangler preview` to open and test deployed worker in browser. ## Deployment All pushes to master automatically deploy dev version to https://meta.omaps.workers.dev/ Deploy to prod manually using `npx wrangler publish --env prod` or this [action](https://github.com/organicmaps/meta/actions/workflows/deploy-master-to-prod.yml). ## Known issues - Cloudflare's free Flexible SSL certificates does not support 4-th level subdomains like a.b.example.com, so you can see strange SSL errors. - HTTPS `fetch` requests from Workers are converted to HTTP ones if the target host is in the same Cloudflare zone, see [here](https://community.cloudflare.com/t/does-cloudflare-worker-allow-secure-https-connection-to-fetch-even-on-flexible-ssl/68051/12) for more details.