Skip to content

🗝️ Firebase Authentication with NextJS 13 SSR (getServerSideProps)

License

Notifications You must be signed in to change notification settings

lukethacoder/next-firebase-auth-ssr

Repository files navigation

next-firebase-auth-ssr

A small example repository of Server Side Rendered (SSR) Firebase Authentication in NextJS (getServerSideProps)

Packages

Getting Started

Install packages

yarn

Setup your .env.development file

Duplicate the .env.example file and rename it to .env.development. Replace the values with your own.

Run the firebase emulator

yarn firebase:emulate

This will create a firebase authentication instance on port 9099 for testing

Run the Next dev site

yarn dev

Acknowledgements