Note, Netlify’s limitations can be more restrictive than those above. For example, the maximum function timeout is 28 seconds with a default of 10 seconds (with background functions being an exception).
However, we cannot offer a larger space for environment variables because of the limitation above.
That’s an unfortunate stance to take for something like this because it’s something that could easily be documented. People with more than 4kb can opt into to using the UI or resorting to sed if needed. Moreover, even for that use case they’d still like to know what environment they’re targeting I’m sure. I use Netlify because of the branch deploys and branch based environments which is all but broken without nasty hacks.
Voicing this as one of the “few” to even the scales compared to the “many.”
we do appreciate your feedback on this, and we hope to get things fixed up better when we can. I know there is an update to our doc re: env vars planned, and generally of course it would be better to have more than a 4kb limit, but i do believe that is still out of our hands.
if anything changes here, we will absolutely let you know.