I’d encourage you to consider Firebase Hosting to be a general-purpose web hosting platform, not just for static content. You could deploy nothing but a 404.html and a firebase.json with a function rewrite and that would be a completely appropriate use of Firebase Hosting.
That being said, Cloud Functions does have the ability to do basic routing without connecting to Firebase Hosting. Each Cloud Functions URL will accept any request that contains itself as a prefix. So if I have the URL:
https://us-central1-my-project.cloudfunctions.net/someFunction
I can add a slash and additional routing after it:
https://us-central1-my-project.cloudfunctions.net/someFunction/users/annie
Look at the req.url in the function handler to see the path after the function name. You can even write standard Express apps with routes that work against these URL patterns.
Hope that helps!
--
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/a24a7d62-9c4e-4d7b-8fb2-9a53fcca40bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.