I am working on next js project and I use it with firebase and right now I use firebase with my components to retrieve some data and it works perfectly – as expected – and I wanted to use firebase in getServerSideProps so I thought I should use firebase admin sdk but for fun I tried to use it with the same firebase package I used on front end and – I don’t know how – it worked however the code in getServerSideProps must be a back end code so right now I don’t know why does it work and If I should keep using firebase web package or switch to firebase admin package