[Vuejs]-Best Practice for Nuxt.js and Firebase Realtime Database

-1👍

I had tried and i found there are two options i dont have any solution for Firebase/Firestore on NUXT SSR mode

for SSR mode… work for firestore and realtime database but it’s not realtime processing

you can fetch data on asyncData method in component or nutServerInit method on actions Vuex

if you want realtime working like firestore you have to use SPA mode on nuxt but it’s not good for SEO

you can fetch data on asyncData method in component or nuxtClientInit method on actions Vuex

https://www.youtube.com/watch?v=ZYUWsjUxxUQ&feature=youtu.be

above video not working for realtime processing but it work for SSR
it was using ismorphicfetch for realtime database but not for Forestore

deploying NUXT SSR on Cloud Function it need a little tweak Cloud Function still beta not yet support node v8

Leave a comment