Environment secrets are sensitive configuration settings, such as API keys, passwords, or tokens, that are securely stored and used by your script. They are kept hidden from source code to prevent unauthorized access and maintain the security of your system. Unlike environment variables, secrets cannot be viewed once they are set. You can only update or delete them. This ensures that sensitive values remain protected even from users with dashboard access.Documentation Index
Fetch the complete documentation index at: https://docs.bunny.net/llms.txt
Use this file to discover all available pages before exploring further.
Adding environment secrets
To add environment secrets to your script, follow these steps:- Log in to the bunny.net dashboard.
- Select Edge Platform, click on Scripting, and select the script.

- Select Env Configuration and Environment Secrets, and fill in the details of the secret you want to create.

- Click Save Secret.
Using environment secrets
Environment secrets are accessed in the same way as environment variables, using either the Node.js process module orDeno.env.
Deno.env.get():
Names of environment variables and secrets on the same script must be unique.
You cannot use the same name for both a variable and a secret.