move to .env

This commit is contained in:
Devin Zuczek
2026-06-30 01:04:54 -04:00
parent 9c84c279ef
commit ca639d5e01
+2 -2
View File
@@ -8,10 +8,10 @@ Notifications, …).
Each host is built at runtime from the `DOMAIN` var (the base domain) plus the 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 service → subdomain map in `src/endpoints.ts`. `DOMAIN` is injected at deploy
time from the repo-root `env.json` (see `run-wrangler-deploy`) and defaults to time from `RECFLARE_DOMAIN` (see `run-wrangler-deploy`) and defaults to
`rec.example.com` in `wrangler.jsonc` for local dev. `rec.example.com` in `wrangler.jsonc` for local dev.
## Updating endpoints ## Updating endpoints
- To change the base domain, edit `domain` in `env.json` and redeploy. - 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`. - To add or rename a service host, edit the map in `src/endpoints.ts`.