An example of a Monorepo to deploy a Firebase Node API alongside a Next.js app.
- Create a project in Firebase.
- You will need to add your Firebase Service Account in
/app/.firebase/service-account.json
. - Update your
databaseURL
inserver.js
. - Modify the route in
routes/api/index.js
to match your database structure. now.json
as well as/pages/city.js
can then be modified to match your database structure.
$ now dev
Next.js app + API available at http://localhost:3000.
From the root directory.
$ now --target production