Configure to redirect system domains (...web.app) to primary domain.
Problem
Firebase Hosting currently serves content simultaneously across three URLs: a custom domain (e.g., site.example.org) and two system domains (project.web.app and project.firebaseapp.com). This creates duplicate content issues for SEO and fragmenting analytics.
Proposed Solution
Allow users to designate a Primary Domain within the Firebase Console. Once set, all requests to the default system domains should automatically trigger a 301 redirect to the primary custom domain.
Key Requirements
* Automatic Redirection: System domains (web.app / firebaseapp.com) should mirror the "Redirect" functionality already available for custom domains.
* SEO Optimization: Consolidate page rank by ensuring only one canonical URL exists.
* Configuration: A simple toggle or dropdown in the Hosting "Domains" tab to "Redirect system domains to [Custom Domain]."