metaserver to control maps nodes
Find a file
2024-07-31 09:04:25 +02:00
.github/workflows Update github actions 2024-07-31 09:04:25 +02:00
src Enable donates for GP android 240729 2024-07-29 20:42:12 +02:00
test Respond with CF-cached beta server for all non-official data versions 2023-05-31 08:55:17 +02:00
.gitignore .gitignore .DS_Store files 2022-11-23 07:48:08 +02:00
.nvmrc Initial commit 2021-06-18 22:38:16 +02:00
.prettierrc npm run upgrade, fixed toml prettier error 2023-12-14 22:56:17 +02:00
jest.config.json Implement conditional donates 2022-09-11 20:10:23 +03:00
LICENSE Initial commit 2021-06-18 22:38:16 +02:00
metadata.json Initial commit 2021-06-18 22:38:16 +02:00
package-lock.json Removed eslint 2024-07-31 09:03:41 +02:00
package.json Removed eslint 2024-07-31 09:03:41 +02:00
README.md Update readme 2024-07-31 09:04:25 +02:00
tsconfig.json Upgrade to Wrangler 2 2022-11-23 07:48:08 +02:00
wrangler.toml Upgrade to Wrangler 2 2022-11-23 07:48:08 +02:00

Metaserver to monitor map nodes and serve them to clients

Deploy master to Production

Requirements

Install CloudFlare's wrangler and other dev dependencies using npm:

npm i

Development

Use npx wrangler dev for localhost development and for testing using Cloudflare dev tools.

Update node dependencies to their major versions

npm run upgrade

Preview on workers.dev

Use npx wrangler publish to open and test deployed worker in browser at https://meta-dev.omaps.workers.dev

Monitor Worker logs

For dev: npx wrangler tail [--format json]

For production: npx wrangler tail --env prod [--format json] or npm run logs

Deployment

All pushes to master automatically deploy prod version to https://meta.omaps.workers.dev/ and https://meta.omaps.app/

Deploy to prod manually using npx wrangler publish --env prod or this action.

Deploy to test dev version live at https://meta-dev.omaps.workers.dev/ manually using npx wrangler publish.

Known issues

  • Cloudflare's free Flexible SSL certificates do 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 for more details.