Maybe you can shed some light on if firebase meets my requirements, before digging in deep. What i have in mind is of the following structure:
- www.domain.tld (more or less static site)
- admin.domain.tld (admins can log in and create and manage customers)
- customer1.domain.tld (customer can log in, configure it's site and invite "normal" users to sign up and log in)
- customer2.domain.tld (...)
- ...
This would require:
- custom domain and subdomains (all with ssl/wildcard)
- a single codebase with 3 compartments (landing page, admin, customer:id/name/subdomain)
- some sort of ACL to restrict users to there own data/records, customers to theirs and theirs users and admins to all of them
- seamless authentication on all of the above sites
Concerns, questions, links and resources are all very appreciated. Thank you!
CodePudding user response:
A single TLD on Firebase can have at most 20 subdomains. This makes it ill suited to the approach you're proposing.
You'll want to set up a separate project for each customer, or consider looking for another hosting solution.
Also see: Firebase hosting sub-domain limit