Search code examples
firebasefirebase-hosting

Two web apps - one firebase project: should I create two apps or two hosting sites for a single app?


I am creating a firebase project. It contains two React webapps: a client facing app and a backoffice app.
I either:

  • create two apps in Firebase with separate configurations, and two hosting sites
  • or keep a single app in Firebase and use its config in both React apps, and two hosting sites
    In my understanding, the apps can access the same resources either way.

What should I do?
More precisely: what is the benefit of separating Web apps in Firebase ?


Solution

  • If you don't intend to configure the Firebase products within each app differently, then there is not much practical difference. You would need to visit specific use cases, then ask if separate apps help or hurt that case. The use cases where separate apps would be more helpful are likely to revolve around Analytics rather than development. Analytics and its related products use the concept of an application to generate meaningful data about that app, and also create and target audiences within those specific apps.