I couldn't find an example when creating an SSR page using firebase's firestore data, so I improved the example based on the actual app I created
My sample app: https://github.com/mikan3rd/commitly
Remove the dotenv dependency from all examples (in favor of environment support): #15225
All variables are exposed to the client. This Example does not use firebase-admin.
* initialized example
* Import from "firebase/app"
to get only needed firebase modules
* credentials as env variables
Also, initialize app in a separate file. Much cleaner.
* Update examples/with-firebase-client-side/package.json
Co-Authored-By: Luis Alvarez D. <luis@zeit.co>
* fixed environment variables and added .env.example
* added dotenv
* Updated readme
* Renamed example in the readme
* Renamed example files
* Updated title
Co-authored-by: Luis Alvarez D. <luis@zeit.co>