I have a website that I'm already hosting at www.example.com
(custom domain) using Firebase Hosting. I already have various HTML pages on the site like example.com/page-1.html
or example.com/page-2.html
.
Now I need to build a web application example-web
and put it in a page within the already existing site. Imagine example.com/page-3
should load the Flutter Web application only. I do not want my existing HTML pages to change or be affected by the Flutter single page web application.
Some things to note:
- I already have iOS and Android applications built using the same Firebase project as the site being hosted on
example.com
. These mobile apps are also created with Flutter. - I have created a sample web application using Flutter and Firebase as well within the same project.
- I need it to be on the same domain because I already have Firebase Hosting set up to read a variable and then load the Flutter web app using that variable. For example
example.com/profile/username
needs to load the flutter web app after reading the variableusername
. - I am simply confused about how to load the Flutter Web App build inside an existing Firebase Hosting website?
- Should I be hosting the flutter web app in a different hosting link and load it inside an iFrame within my existing domain page?
Any help or guidance for this will be highly appreciated! Thank you!