One more env issue

have managed to get most of my environment variables to work. Except Google private key.
I use netlify-lambda and run API calls in node.js. If I hard code the key/value in the function then it works. Can it have something to do with the key itself? it looks like this:

NODE_ENV_GOOGLE_PRIVATE_KEY=-----BEGIN PRIVATE KEY-----\nM…lM=\n-----END PRIVATE KEY-----\n

This is how I handle keys, since carriage returns are really tough in environment variables:

Additionally, please note that there is a hard limit of 4k total characters in environment shipped to a lambda function - in the format:

VAR1=val1,VAR2=val2 ...

so…it’s pretty challenging to get that key in there depending on length!