Search code examples
firebasefirebase-hostingfirebase-tools

Firebase deploy firebase.json only


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.


Solution

  • 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.