Multiline environment variables

Is it possible to set multiline config vars? I’m trying to use env vars to store a private key to authenticate to google apis, but getting this error:

Error: error:0909006C:PEM routines:get_name:no start line

I’m able to reproduce it locally too, so I’m fairly sure that’s what the problem is.

For what it’s worth, I can set a multi line config var in heroku and it works there.

1 Like

Hey @mehulkar,

I did some digging and I stumbled upon this discussion which, in turn, pointed me to our support guide on the matter!

Hope this steers you in the right direction!

simple solution here: Long Environment Variable with line breaks (\n) - #6 by mehulkar

1 Like