Files
2026-07-13 18:24:00 -04:00
..
2026-06-30 23:57:29 -04:00
2026-06-11 02:10:01 -04:00
2026-06-29 23:44:57 -04:00
2026-06-30 01:04:54 -04:00
2026-06-11 02:10:01 -04:00
2026-06-11 02:10:01 -04:00
2026-06-30 23:57:29 -04:00
2026-07-13 18:24:00 -04:00

ns

Name-server / service-discovery worker served on the ns subdomain.

GET / returns the endpoints document the game client fetches on startup to discover every service host (Accounts, API, Auth, Econ, Matchmaking, Notifications, …).

Each host is built at runtime from the DOMAIN var (the base domain) plus the service → subdomain map in src/endpoints.ts. DOMAIN is injected at deploy time from RECFLARE_DOMAIN (see run-wrangler-deploy) and defaults to rec.example.com in wrangler.jsonc for local dev.

Updating endpoints

  • To change the base domain, set RECFLARE_DOMAIN (in .env) and redeploy.
  • To add or rename a service host, edit the map in src/endpoints.ts.