fastfeedback
fastfeedback copied to clipboard
handling private key new line issue more robustly
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
yep yep!!, this is the easiest go to for multi-line environment variables, resolved the same issue in my deployment yesterday 👍