Firebase Hosting - Flutter Web App hosting of extra .html page

439

A different approach would be to add the html to the web folder and launch it from there such that when you launch it you will have yourdomain.web.app/my.html

Share:
439
bertharry
Author by

bertharry

Updated on December 20, 2022

Comments

  • bertharry
    bertharry over 1 year

    I am currently working on a Flutter web app that is being hosted on Firebase. The web-app has an image upload function for the user, that uses another HTML page that is living in the assets folder (doing this because I use some JS libs on this page - that I didnt find for dart). This html page gets called from dart in an extra window - locally this works fine - i am just opening the page at localhost/assets/html/uploadImage.html and the window appears. However this does not work when hosted on Firebase. Here i am calling /assets/html/uploadImage.html - but just get a blank page. I kind of understand that static files do get hosted differently on Firebase, than on local - but I dont understand what I am doing wrong right here. Is there something configurable to have that one extra page hosted as well?

    Happy to hear your thoughts!