thgh / vercel-sapper

Vercel builder for Sapper with SSR enabled
MIT License
189 stars 25 forks source link

Firebase service account #58

Closed jonadeline closed 3 years ago

jonadeline commented 3 years ago

Hi,

I'm using firestore on server side and I would need to upload the service account json file. So I put the file in __sapper__/build/server but I'm not sur this is exported by vercel-sapper when building the app. If yes (that would be cool) what would be the path ? (cause I need to setup it in an environment var). And if not is there a way to do so ? I was thinking to put the service account in static folder but this is not secure at all I guess.

Thank you in advance for your help.

jonadeline commented 3 years ago

ok finally I figured out the path to setup in my env file. It was simply __sapper__/build/server/[my.json]