#How to use Firebase with Astro?
1 messages · Page 1 of 1 (latest)
Example from @twilit escarp https://github.com/lhermann/astro-firebase-example from #general
I tried this and was not able to fetch the data, could be please help?
you can show the code ?
@lusty bane Did you set the env vars properly? SNOWPACK_PUBLIC_FIREBASE_API_KEY
Also, that Firebase example is old. It's pre v1, so it's probs broken
well @lusty bane
do you need a new template ?
Contribute to TomEverson/Astro-Firebase-Starter development by creating an account on GitHub.
I made a really simple one with firestore access
Yay, that's awesome 👌 we now have an updated Astro Firebase Starter
This is incredible, have been trying to figure out stuff and finally! You are a life saver thanks a ton!!!!
I'll try this and will text you if I have any questions, and once again, thank you so so much
you are welcome
Tried it and it runs perfect! 🔥
Also, I am using firebase hosting. So do I need to write a cloud function to build it everytime the content is updated in Firestore?
Any other alternative way to achieve this?
I think yes ?
there is no other way to update data in SSG
is there any docs/github repo of cloud funtions for updating the astro static site hosted on firebase (automatically whenever the content is updated in firestore)?
I am not sure about firebase having webhooks deploy support
essentially what I do on my website is that
CMS at backend
Astro ( Vercel ) at frontend
and everytime data is updated
CMS sent webhooks to vercel to redeploy
Oh got it, will try searching for webhooks deploy for firebase