useEnvironment
Overview
useEnvironment
useEnvironment<BoundEnvironmentAliases>(bindingAlias): `BoundEnvironmentAliases`[keyof `BoundEnvironmentAliases`]
Type parameters
Name | Type |
---|---|
BoundEnvironmentAliases | {} |
Parameters
Name | Type |
---|---|
bindingAlias | keyof BoundEnvironmentAliases |
Returns
BoundEnvironmentAliases
[keyof BoundEnvironmentAliases
]
Defined in
hooks/EnvironmentContext.ts:34
Hook for consuming the environment bindings associated with the current request.
The value of this context is derived from your application's runtime:
env
object passed from the current request.Deno.env.toObject()
.process.env
.