leerob / fastfeedback

Easily add user reviews, feedback, and comments to your website in one line of code.

Home Page:https://fastfeedback.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

handling private key new line issue more robustly

dingran opened this issue · 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'),

project_id: process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID

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