Firebase deploy firebase.json only

3.5k views Asked by At

Can I deploy just the hosting configuration file, firebase.json instead of deploying all my assets ie. html files, images etc? If so, how?

I'm currently doing firebase deploy --only hosting but that will deploy all the assets.

I'm asking because I want to test out my rewrite rules etc and don't want to re-upload all the assets again which is time consuming. Thanks.

1

There are 1 answers

3
Frank van Puffelen On BEST ANSWER

There is currently no way to tell firebase deploy to only apply the changes in the firebase.json file.

But note that firebase deploy only deploys files on hosting, if the local file is different from the deployed version. So if none of the file are modified, it effectively only updates the other changes in your firebase.json file.