We created static one page WEB application that uses external API for authentication and data.
We set dedicated URL space prefixed with /api
to solve cross domain restrictions with reverse proxy. Proxying works fine with Ngnix, Apache on local setup but I can't find proxying support in Firebase Hosting: https://firebase.google.com/docs/hosting/url-redirects-rewrites
There is Function offer that can run node runtime up to 1 minute per call. Can't it be used to implements reverse proxy?
UPDATE We ended with Heroku offering. It hosts our static JS/CSS assets via WEB server (internal detail of a particular cloud provider) and same WEB server is user for proxing API calls via defined extension point, mapped to URL root like /api
.
This way JS application is written to issue API calls to URL without schema / host / port, it doesn't matter if you run it on localhost
(development) or in cloud env (prod)!