Firebase Hosting Setup Complete code example
Example 1: firebase only hosting command
firebase deploy --only hosting
Example 2: firebase deploy
=> firebase login
=> firebase init
=> select Hosting: Configure and deploy ... (press space for select)
=> Use an existing project
=> What do you want to use as your public directory? build
=> Configure as a single-page app? Yes
-----------------------NOW RUN-----------------------
=> npm run build
=> firebase deploy
!!!!! Congrats you just deploy your app !!!!!
Example 3: firebase deploy hosting test
firebase hosting:channel:deploy CHANNEL_ID
Example 4: Welcome Firebase Hosting Setup Complete You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary! OPEN HOSTING DOCUMENTATION
"homepage" : "https://wg-live-chat.web.app",
in pakesg json
Example 5: make website on firebase
firebase serve
Example 6: firebase deploy
firebase deploy --project [project-name]