Ready to proceed and switch to the Hosting section
#or
$ firebase init hosting
Create a new firebase project for your project or you can choose the current existing project.
You will be asked which one to use as the startup directory, so instead of the default public, write dist Since npm run build/ yarn build, the dist directory is created when you build your project (Vue/React). If you have already created a dist directory, the files will still be placed in this directory after packaging.
Choose rewrite index.html with input y, even exist or not, also choose y
Choose a GitHub repository for this project and setup the CI/CD settings
Until here the firebase initialize was done, now run the npm run build or yarn build in terminal to build the project.
Run firebase deploy in the terminal to start the hosting
$ firebase deploy
Follow the Hosting URL given here to visit your project!
You may also visit the firebase console to view your project information.