Commit Detail
Commit f82812e
Implement importable env (#3610)
```js
import { env } from 'cloudflare:workers';
console.log(env.FOO);
export default {
fetch(req) {
console.log(env.FOO);
// ...
}
}
```
Gated by a compat flag that is on by default
* `allow_importable_env`
* `disallow_importable_env`
Mutations of the env properties are passed through to the underlying
object so will be reflected on the `env` argument passed into the
handlers.Files changed
15 files changed+6 added~9 modified
Showing a partial diff list due to runtime limits (time_budget).