Features
- Understands .envHandles export prefixes, quotes and comments.
- Valid stringsValues are escaped for TOML.
- Runs on your deviceYour data is processed in the browser and is never uploaded.
How to use the .env to netlify.toml
- Paste your .env content.
- Remove any secret that should not be committed.
- Copy the block into netlify.toml.
Keep secrets out of the repository
netlify.toml is usually committed. Put API keys and passwords in the Netlify dashboard instead.
Frequently asked questions
Is my file uploaded?
No.
Do these variables reach runtime functions?
Variables in netlify.toml apply to the build. Check Netlify documentation for functions.
What about duplicate keys?
The last one wins.