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.
All Firebase Realtime Database data is stored as JSON objects. You can think of the database as a cloud-hosted JSON tree.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With