Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to invoke Cloud Functions from Firebase Hosting?

I have static content on firebase-hosting - where i have routing eg. ~/xxx - is possible to invoke firebase-function when someone enter this path ?

like image 241
marcin Avatar asked Feb 28 '26 09:02

marcin


1 Answers

Yes. This is a recently announced feature at Google's 2017 IO conference. You can create a rewrite alias in your firebase.json file which points to a cloud function via your domain name. This is the section of the documentation which clearly describes how it is done.

like image 140
Dwayne Charrington Avatar answered Mar 03 '26 00:03

Dwayne Charrington



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!