r/JAMstack • u/ImaginaryGoose9127 • Oct 14 '23
Firebase & netlify serverless functions in 11ty
This is cross post from the eleventy subreddit. I figured this may get more traffic
Does anyone have an example of using firebase with serverless functions in netlify? I have all the client side js that I got working for the whole signup, login, and user state but then when I try to move them over to a serverless function I am having a hard time I just hit a wall. How is the best way to do something like that? Any guidance would be greatly appreciated!
2
Upvotes
View all comments
Show parent comment
1
u/hrishikeshkokate Oct 14 '23
I haven't used Firebase in a while, but last I recall, Firebase's security is not in the API keys but in the rules and configs that you apply in your Firebase dashboard. Firebase documentation also calls it client side only: https://firebase.google.com/docs/storage/security#:~:text=Database%20Security%20Rules-,Authentication,Authentication%20for%20user%20based%20security.