remove hard coded routes

This commit is contained in:
Devin Zuczek
2026-06-29 22:41:17 -04:00
parent 69b89e2dc4
commit 81815ef06c
29 changed files with 122 additions and 256 deletions
+7 -4
View File
@@ -47,12 +47,15 @@ own copy.
```bash
cp env.example.json env.json
# edit env.json and set "domain" to your domain
just sync
```
`just sync` regenerates the derived config (wrangler route patterns, the `ns`
service-discovery document, and the api share-link base URL) from `env.json`.
Re-run it whenever you change `env.json`.
`just deploy` reads `env.json` at deploy time and passes the base domain to
wrangler — each worker is attached to its custom domain via `--domain
<subdomain>.<domain>`, and the base domain is injected as the `DOMAIN` var so
the `ns` service-discovery document and the api share-link base URL are built at
runtime. Nothing in version control is rewritten; committed `wrangler.jsonc`
files have no routes, and per-app subdomain overrides live under `subdomains` in
`env.json`.
**Run Development Server:**