let’s trying hosting a web app using firebase.
- Create a firebase account
Create a new project
Install Firebase CLI tools using the terminal
npm install -g firebase-toolslog in to your account
firebase loginGo to your project and initiate firebase
firebase initSelect firebase hosting and select out as the build folder
Update your build script and run npm run build
“build”: “next build && next export”,Finally run firebase deploy — only hosting
That’s it you successfully deployed your next app in firebase.
Top comments (0)