Commit dd3518e
chore(template): add APP_VERSION and HEALTH_DB_TIMEOUT_MS to env templates
The new /health endpoint reads these from c.env (Workers) or process.env
(Node). Adds them to:
- .dev.vars.example (Workers local dev)
- .env.example (Node local dev)
- wrangler.toml [vars], [env.staging.vars], [env.production.vars]
APP_VERSION mirrors package.json so generated projects ship with a real
value out of the box; HEALTH_DB_TIMEOUT_MS defaults to 2000 ms so the
DB ping fails fast under network partition.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e9947e1 commit dd3518e
2 files changed
Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| 41 | + | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| |||
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
| 66 | + | |
| 67 | + | |
62 | 68 | | |
63 | 69 | | |
64 | 70 | | |
| |||
0 commit comments