fastfeedback icon indicating copy to clipboard operation
fastfeedback copied to clipboard

handling private key new line issue more robustly

Open dingran opened this issue 4 years ago • 1 comments

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'),

https://github.com/leerob/fastfeedback/blob/dad9ad4c989320a661975c86553576c2593671ed/lib/firebase-admin.js#L8

dingran avatar Feb 05 '21 12:02 dingran

yep yep!!, this is the easiest go to for multi-line environment variables, resolved the same issue in my deployment yesterday 👍

JayMGurav avatar Feb 06 '21 00:02 JayMGurav