DEV Community

Pruthvi Darji
Pruthvi Darji

Posted on

Let’s deploy a Next.Js app with firebase

let’s trying hosting a web app using firebase.

  1. Create a firebase account
  2. Create a new project

  3. Install Firebase CLI tools using the terminal
    npm install -g firebase-tools

  4. log in to your account
    firebase login

  5. Go to your project and initiate firebase
    firebase init

  6. Select firebase hosting and select out as the build folder

  7. Update your build script and run npm run build
    “build”: “next build && next export”,

  8. Finally run firebase deploy — only hosting

That’s it you successfully deployed your next app in firebase.

Top comments (0)