Commit 715d6a0
committed
Fix Cloudflare Worker: enable nodejs_compat_populate_process_env
The Cloudflare Workers runtime does not define `process` by default,
even with nodejs_compat enabled. Add the nodejs_compat_populate_process_env
compatibility flag so that process.env is populated from Worker bindings
(including .dev.vars in local development). This allows the identity key
env var to be read at module scope without restructuring the example.1 parent 1928031 commit 715d6a0
2 files changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | | - | |
| 28 | + | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments