![]() PS: Make sure none of your files overwrite each other if they have same name. You should have all existing pages as they were and Flutter app on If the page returns 404 on /page-3 but works on /page-3.html then checkout this answer on cleanUrls. Try serving your website locally using firebase serve -only hosting command. RT Firebase: Firebase updates for web devs from GoogleIO Click to put Cloud Run on Hosting Host SvelteKit and Astro apps Python support. This means that the functionality might change. Note: Framework-aware Hosting is an early public preview. ![]() That page-3.html file will look for file in the same directory so if you move that JS file to any other directory, let's say, /js/ then don't forget to change that in page-3.html. With the Firebase framework-aware CLI, you can deploy your Flutter application to Firebase. If you already have a Firebase hosting project, then I assume your public directory looks something like:Īfter copying all files from the Flutter build directory to the public directory, it should look like:ĭo note that I've renamed index.html from Flutter to page-3.html and kept the original index.html as is. It will generate build/web directory and it's content may look something like: You can simply paste all the files that Flutter generates in your Firebase hosting's public directory. Should I be hosting the flutter web app in a different hosting link and load it inside an iFrame within my existing domain page?Īny help or guidance for this will be highly appreciated! Thank you!.I am simply confused about how to load the Flutter Web App build inside an existing Firebase Hosting website?.For example /profile/username needs to load the flutter web app after reading the variable username. 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.I have created a sample web application using Flutter and Firebase as well within the same project.These mobile apps are also created with Flutter. ![]()
0 Comments
Leave a Reply. |