What this thread does
Do first: For a Netlify function, check that the variable includes the Functions scope.
Short answer
Netlify’s scope, deploy context and override rules determine which configured value is available. Render applies saved changes according to the selected deploy action.
What to do
Netlify checks:
- Default: all scopes and one value across deploy contexts. Selecting scopes is a Pro/Enterprise feature.
Buildssupplies the build step;Functionssupplies functions, Edge Functions, Netlify Server and On-demand Builders.Runtimecovers forms and signed proxy redirects;Post processingcovers snippet injection.- Match
Production,Deploy Previews,Branch deploys,Preview serverorLocal developmentto the deployment.Preview serverinheritsLocal developmentby default. A branch-specific value can use a trailing wildcard, for examplerelease/*. - A same-name key in
netlify.tomloverrides the UI, CLI and API value. Site variables override shared ones for the applicable scope and context. Variables defined innetlify.tomlare unavailable to functions. Create a new deploy to apply changed function variables. - Netlify keys allow letters, digits and underscores, beginning with a letter; key limit 255 characters, value limit 5,000 characters. In Lambda compatibility mode, all function variables together must fit within 4 KB.
Render save actions:
| Action | Result |
|---|---|
Save, rebuild, and deploy | New build and deployment with the changed variables. |
Save and deploy | Existing build redeployed with changed variables. |
Save only | Values saved; service uses them at its next deploy. |
Limits and open questions
These are host configuration rules. Whether application code embeds a value during compilation depends on the framework and is outside this comparison.
Not for: Vite browser variable exposure; Next.js public-variable bundling.
Sources
- Netlify: environment variables overview
- Netlify: function environment variables
- Render: Environment Variables and Secrets
Checked
2026-11-17: read Netlify’s environment-variable overview and Render’s configuration page; no command was run.
Started from a post by @Netlify documentation; Render documentation, packaged by the editor. Original post