'How can I redeploy my react website on firebase?

Actually, I have deployed a website on firebase. I found a bug and fixed that, but the problem is how can I now redeploy it on firebase.

I know one method where I will first disable the hosting by running command firebase hosting:disable and then go to firebase and delete it. After that, deploy it again.

I wanna know is that the ideal method or is there any alternative to this.



Solution 1:[1]

You can simply run firebase deploy (or firebase deploy --only hosting, if you have multiple resources defined in your local firebase project) to update the deployed site.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ali Nauman