firebase
Unanswered
Transvaal lion posted this in #help-forum
Transvaal lionOP
I am building an app using Nextjs and Vercel for FE and Firebase for auth, db and storage. I am not that experienced with either of them but I am doing my best. Right now I stumbled upon a dilema that I hope some of you can help me clear it out. I want to make use of the full capabilities of Nextjs in terms of caching and I am wondering how should I fetch the data from Firebase in order to do so. Firebase offers 3 ways to do it:
Using the Client SDK - not going to use this since I want to fetch my data on the server
Admin SDK
Rest API
While I can achieve the same things with both Admin SDK and Rest API, only the rest api solution would allow me to use the cache capabilities that the fetch method would give me, while with the admin sdk I would only be able to cache the data on the client side using React.cache.
Has anyone build any app using these 2 technologies and if so, what would be the best way to go? What are the advantages and disadvantages of using any of these 2 ways, Admin SDK or Rest API?
Please let me know if you need any further info. Thanks for helping out
Using the Client SDK - not going to use this since I want to fetch my data on the server
Admin SDK
Rest API
While I can achieve the same things with both Admin SDK and Rest API, only the rest api solution would allow me to use the cache capabilities that the fetch method would give me, while with the admin sdk I would only be able to cache the data on the client side using React.cache.
Has anyone build any app using these 2 technologies and if so, what would be the best way to go? What are the advantages and disadvantages of using any of these 2 ways, Admin SDK or Rest API?
Please let me know if you need any further info. Thanks for helping out