Firebase
Hosting Commands
Host static sites and web apps on Firebase's global CDN. Configure custom domains, set up redirects and rewrites, manage release channels, and control caching.
7 commands
Pro Tips
Use 'firebase hosting:channel:deploy staging' to create isolated preview URLs for each feature branch.
Configure rewrites in firebase.json to route all paths to index.html for single-page apps.
Use 'firebase hosting:disable' to take down a site immediately if there's a security issue.
Common Mistakes
Preview channels have a default expiry of 7 days. Set '--expires 30d' if you need longer-lived previews.
Changing custom domain DNS settings can take up to 24 hours to propagate. Plan domain migrations accordingly.