Environment Variables interface
Beta
The Environment Variables interface can be used inside Edge Functions to retrieve environment variables. You can use these variables to interact with backend systems like databases, private APIs, or any authenticated service. These variables can be managed through Azion CLI (Previous versions of azion 1.x.y).
Syntax
Parameters
Parameter | Type | Description |
---|---|---|
key | string | The key of the variable being accessed |
Note: if the key informed is incorrect, it returns
undefined
.
Find out more about Environment variables.
Return value
A string
with the value stored at the given variable’s key, or undefined
if the key doesn’t exist.