Repository navigation
Commit c8e00a5
committed
Fix cloud app 500s by lazily accessing Cloudflare env bindings
Eagerly reading cfEnv.HYPERDRIVE/LOADER/MARKETING at module load time
causes every request to fail with HTTPError 500. Use property getters so
bindings are only accessed within a request context.1 parent 473731b commit c8e00a5
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
0 commit comments