Next.js + Vercel + Firebase
Next.js app using API routes to connect with Firestore.
Built With
Running Locally
Setup
- Create a project in Firebase.
- Download your Firebase Service Account.
- Create a new file
.env.local
and add environment variables (see.env
for example). - Modify the API route to match your database structure.
Run Locally
$ vc dev
Next.js app + API available at http://localhost:3000.
Deploying
From the root directory.
$ vc --prod