2

I am building a site that is using Angular 4, Firebase, and Firebase Cloud Functions. What I am looking to do is when certain data is added to the database I want to add, remove, or update something in an RSS feed, sitemap, and JSON feed which are files hosted with Firebase Hosting.

Any suggestions on how to accomplish this or an alternative if it is not possible without manual updates and redeploys of the project?

Frank van Puffelen
  • 499,950
  • 69
  • 739
  • 734

1 Answers1

4

There is currently no way to publish a new (or update a) file to Firebase Hosting based on a database (or other dynamic) trigger.

What is possible is to map a Cloud Function to a path on your site (e.g. /sitemap or /feed), generate the HTML in that Cloud Function, and then set caching headers on the result.

Frank van Puffelen
  • 499,950
  • 69
  • 739
  • 734