handling private key new line issue more robustly
dingran opened this issue · comments
Ran Ding commented
We can replace the \\n
to actual new line (so ppl don't have to remember manually adding new line in vercel)
privateKey: process.env.FIREBASE_PRIVATE_KEY.replace(/\\n/g, '\n'),
fastfeedback/lib/firebase-admin.js
Line 8 in dad9ad4
Jay Gurav commented
yep yep!!, this is the easiest go to for multi-line environment variables, resolved the same issue in my deployment yesterday 👍