See Live Demo of this Template
- Create a Firebase project and set up authentication. Use these videos as a refresher if needed.
- From your command line, be in the root directory and run
npm installORnpm ifor short. - Next, run
npm run prepare. This command sets up husky to track eslint errors on commit that will make your deploy fail on Netlify. - To start your application, run
npm run dev. THIS IS THE COMMAND YOU WILL USE TO RUN YOUR DEVELOPMENT SERVER FROM NOW ON. - Open http://localhost:3000 with your browser.
Netlify will automatically detect your project and prepopulate the settings, but should something go wrong and it does not, here are the commands:
- Build Command:
npm run build - Publish directory:
.next
-
Add Environmental Variables
- Any Enviromental variables you are using in your
.envfile should be added to Netlify.- Go to Site settings > Build & deploy > Environment > Environment variables and the keys and values there if you did not add them when you were deploying your site
- Any Enviromental variables you are using in your
-
Update Firebase URL Settings
- In Firebase under Authentication select sign in methods, scroll to Authorized domains. Add your Netlify URL.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.

