Questions tagged [firebase-hosting]

Firebase Hosting is developer-focused static web hosting for modern front-end web applications. Using Firebase Hosting, developers deploy SSL-enabled web apps to a global content-delivery network from a single command.

About Firebase Hosting

Firebase Hosting is a component of the Firebase suite of tools for cross-platform application development.

  • Automatically provisioned SSL certificate
  • Blazing-fast content worldwide
  • Support for client-side routing
  • Atomic deploys and one-click rollbacks

Related tags

2394 questions
16
votes
1 answer

Firebase hosting ssl certificate is showing different domain

I've connected a custom domain to firebase hosting, you can see placeholder website here: https://asimetriq.com At first glance everything seems to be fine, but when I view ssl certificate details I see unrelated domain details. Is this normal and…
Ilja
  • 44,142
  • 92
  • 275
  • 498
16
votes
2 answers

Using Brotli with Firebase hosting

Is there a way to use Brotli compression instead of gzip with Firebase hosting? I know that Firebase will automatically compress it but so far it is only with gzip.
Adam j
  • 391
  • 5
  • 18
15
votes
1 answer

Should we (git / version control) track .firebase folder for Firebase Hosting?

I have hosted my Flutter app using Firebase Hosting. After hosting it, I noticed that a .firebase folder was created that contains just one file, hosting..cache. Should I track the contents of the .firebase folder? Or should I add the…
15
votes
1 answer

Firebase hosting Error 503 Varnish cache server

I'm using Firebase hosting to host a small website and since a few hours it is impossible to access it. Here is the message I get: Error 503 Success Success Guru Mediation: Details: cache-dfw18634-DFW 1519815733 3397807763 Varnish cache server I'd…
Didier Corronel
  • 325
  • 3
  • 11
15
votes
2 answers

Rate Limiting on Firebase Hosting

I've been searching for ways to rate limit requests by IP, but was not able to find any resources. Basically what I'm looking is a way to implement firewall logic. I know that I can limit authenticated user requests with database rules, but how do I…
tugce
  • 1,008
  • 1
  • 10
  • 25
15
votes
1 answer

serving gzipped files on Firebase Hosting

I am interested in serving gzipped html/css/js files using Firebase Hosting. I tried setting the Content-Encoding header in firebase.json, but it errors on deploy. purportedly, the only headers you can set include:…
klq
  • 151
  • 1
  • 1
  • 5
14
votes
2 answers

Error while deploying react based SSR app, using firebase-functions

I am trying to deploy my SSR app in Firebase originally forked from, after doing some modification in the app. Which works fine when I do sudo firebase serve --only functions,hosting but throwing error when I do firebase deploy. The reproducible…
14
votes
2 answers

firebase deploy: how to modify pre-deploy

I have a small front-end project with javascript running on firebase hosting and I have to call the build script manually before every time I run firebase deploy. So I was looking for a way to put it in a pre-deploy script but there's no such thing…
Hank Phung
  • 2,059
  • 1
  • 23
  • 38
14
votes
2 answers

How to integrate firebase in Nrwl Nx

I'd really like to integrate firebase as well as firebase cli to my apps in Nx but don't know how. I use firebase functions/hosting/cli-tools, etc. Ideally I'd like to be able to use the firebase cli to deploy individual apps for hosting and cloud…
tommyc38
  • 703
  • 1
  • 8
  • 21
14
votes
1 answer

Redirect Firebase Hosting root to a Cloud Function is not working

I'm using Firebase Hosting with a firebase.json file that is supposed to forward all traffic to a cloud function (prerender) which populates meta and og tags for SEO. { "hosting": { "public": "dist/prod", "rewrites": [ { …
14
votes
3 answers

Deploy to firebase hosting from a firebase function

Is it possible to deploy static assets from a firebase function to the firebase hosting? Use case: A blog with static html files. Blog content and meta infos would be stored in the database (content as markdown). On publish or update, a firebase…
Philipp Gfeller
  • 1,167
  • 2
  • 15
  • 36
14
votes
1 answer

Can I use Firebase Hosting to write a RESTful API in Node.js

Let's take for example the server.js Hello World var http = require("http"); http.createServer(function(request, response) { response.writeHead(200, {"Content-Type": "text/plain"}); response.end("Hello World"); }).listen(80); How can…
marco
  • 3,193
  • 4
  • 28
  • 51
14
votes
6 answers

Change URL in new Firebase (from May 2016)

Earlier when using Firebase, there was an option to use our own url like myapp.firebaseapp.com (including firebaseapp.com part). But from May 2016, when I create a project, it gets an auto-generated URL like my-app-1c75b.firebaseio.com, and I cannot…
Sathindu
  • 407
  • 1
  • 5
  • 21
14
votes
3 answers

Firebase Hosting - Wildcard Redirections

I want to use Firebase Hosting to host an angular application and I need to create a redirection to some old files in another URL. According with the Firebase Documentation you can do basic redirections "redirects": [ { "source" : "/foo", …
Enrique Chavez
  • 1,409
  • 1
  • 12
  • 21
14
votes
3 answers

Hosting nodeJS app with firebase

So I have this web-app using angularJS and nodeJS. I don't want to just use localhost to demo my project because it doesn't looks cool at all when I type "node server.js" and then go to localhost..... Since I intend to use Firebase for the data, I…
Bones and Teeth
  • 383
  • 1
  • 6
  • 15