Skip to content
Myr

Update README.md (#304)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* Update README.md Adding some clarity on how to access bindings like secrets * Update README.md

authored by Charl Kruger · committed by GitHub · parent 38a8c46 · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:README.md+2 added
493 unmodified lines
494```495496### c.env497498Environment variables, secrets, and KV namespaces are known as bindings. Regardless of type, bindings are always available as global variables and can be accessed via the context `c.env.BINDING_KEY`.499500```ts501// Environment object for Cloudflare Workers502app.get('*', async c => {503 const counter = c.env.COUNTER
242 unmodified lines