Ruben,
The rewrites section of the guide has an example nearly identical to this question.
Maybe fiddle with something like this?
"rewrites": [ {
"source": "/index.html",
"destination": "/login.html"
} ]
☼, Kato
Hello,I know firebase looks for the 'index.html' page in your directory and it sets that as the homepage for when users open the app url. However, my app is currently set in a way that I need users to load login.html first and after authentication go to the index.html. How can I redirect or change the default 'index.html' to 'login.html' without having to rename everything? Thanks.
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/2200cf80-2c05-4a01-afa3-fde6514b79eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hey Ruben,
Firebase Hosting is static hosting, meaning we don’t serve different content based on app state. There are two approaches you can take for this:
window.location = '/login.html';Hope that helps.
-Michael
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CADypTEZifrXtVLU8NcE-1DSAPN9MTL79jjZqh2aDN7KOEPFOXQ%40mail.gmail.com.