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>
* Rename Firebase Auth example
* Update gitignore to include npm5 lockfile
* Cloud Function
* Add Next app with two pages to demonstrate navigation
* Add Firebase Hosting and configuration to Host & Deploy
* Fix errors in rename for firebase-auth example
* Recommend pkg managers with caches for better perf
* Update with-firebase-hosting example
Fix code
* Update with-firebase-hosting example
Fix npm scripts and package.json files
* Update with-firebase-hosting example
Update README & install scripts
* Update with-firebase-hosting example
Update example package name
* Update with-firebase-hosting example
Fix to use single-quotes
* Update with-firebase-hosting example
VSCode did not like single-quotes! Sorry
* Fix gitignore file
* connecting to firebase
* login and logout with sessions
* setting messages on the client side
* should have messages served on init
* set messages in state
* updating credentials
* updating readme
* more cred
* iron out eslint issues
* highlight where to put firebase variables
* fix problem of database listener not picking up changes on load
* remove isomorphic from main package.json