Search code examples
firebasefirebase-hostingfirebase-cli

Firebase Hosting deploy only to sub directory


I'd like to know that can "Firebase deploy" make update only for the sub directory inside root?

my structure

/public (index.html,other 100+ files)
/public/data (require.json) ::only 1 file

The problem is I need to update(deploy) only 1 file, "/public/data/require.json" about every hour. But when deploy, all data(& folders) inside public folder is updated and consuming too much cost.

Is there anyway to update only 1 specific folder or file inside webroot. Thank you.


Solution

  • The Firebase CLI can currently only deploy the entire web site. You cannot update a subset of the files.

    It is a great feature request though and we've gotten it before. If you'd like to weigh in/cast your vote, I'd recommend you file a feature request.