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
13
votes
2 answers

How to turn off default domain in firebase hosting - firebase

I just set up new Firebase Hosting and my custom domain and my web page, etc... Everything works great, except what is really bothering me are default Domains: projectname.web.app projectname.firebaseapp.com Looking around googling, I have not…
5er
  • 2,506
  • 7
  • 32
  • 49
13
votes
2 answers

Stop saving in cache memory Flutter web Firebase hosting

I designed a web app using the Flutter web. I hosted it with Firebase host. But It's not showing changes of my code after deploying to firebase. It's still showing my older version of web app. But I can overcome this problem by clearing cache memory…
Faslur Rajah
  • 861
  • 2
  • 10
  • 17
13
votes
2 answers

How can I do IP whitelisting for a static site hosted in Firebase? / Is there a WAF for Firebase hosting?

I have a static website hosted in Firebase. I can attach a custom domain to it fine. I would like to restrict access to my site to a certain range of IPs. I am aware that in GCP Google Cloud Armor can do this. But Cloud Armor only works with a Load…
13
votes
1 answer

Firebase hosting custom headers not working

I deploy a static site on firebase hosting with some header configuarations. But I some of my headers doesn't appear after the site deployed. I tried change the value of Cache-Control header and it works. But…
3142 maple
  • 865
  • 2
  • 11
  • 27
13
votes
2 answers

Prevent Search Engine Indexing of Angular 5 Website - Firebase

How do I prevent my Angular 5 site from being indexed by search engines? I don't understand the documentation on Firebase indexing, and it seems like it refers specifically to indexing a mobile app, not an Angular website. Would I add a robots.txt,…
Kellen
  • 1,072
  • 2
  • 15
  • 32
13
votes
3 answers

Authentication for firebase hosting

I have a static app hosted on Firebase hosting whose backend is also on Firebase(communicating using firebase JS api). I want to add a simple auth page to all pages of this website so that only users I want can access this site. Is this…
13
votes
1 answer

When deploying with Firebase hosting, I get hosting.rewrites[0] is not exactly one from [subschema 0],[subschema 1]

Deploying an application to Firebase hosting, I get the following error: HTTP Error: 400, hosting.rewrites[0] is not exactly one from [subschema 0],[subschema 1] This occurs with a simple configuration like: { "hosting": { "public":…
Niek Oost
  • 628
  • 5
  • 15
13
votes
1 answer

Firebase hosting URL needs .html to display a page

I am trying to host a website at Google Firebase. The index.html is shown as (e.x.)app.firebase.com, but when I want to access a page like login.html I need to type app.firebase.com/login.html, just app.fire-base.com/login doesn't work. How would I…
13
votes
3 answers

Firebase deploy, ignore all files but public folder

I am trying to clean up my deployment process to Firebase, and need to ignore all files besides my /dist aka public folder when deploying files to the hosting. I believe it can be done via ignore setting in firebase.json, but I am not sure how to…
Ilja
  • 44,142
  • 92
  • 275
  • 498
13
votes
3 answers

Firebase hosting + React with webpack

Is there a way to add Firebase hosting to React project that utilizes webpack? Specifically, I am trying to add it to https://github.com/mxstbr/react-boilerplate This is my firebase.json file { "hosting": { "firebase": "name", "public":…
astiefel
  • 2,038
  • 2
  • 16
  • 22
13
votes
4 answers

Trouble with deep routes on a single-page app on Firebase hosting

(Updated below with a little more info) We have a react-based single-page web app that lives on Firebase Hosting. We've been using hash-based routing up to this point (e.g. mysite.com/#/path/to/content). We introduced React Router, which allows us…
hairbo
  • 3,113
  • 2
  • 27
  • 34
13
votes
1 answer

Can I add additional file to my Firebase hosted static website, or must I deploy the entire site every time?

We plan to host a fairly large set of static files with Firebase Hosting. Is it possible to deploy only new files to Firebase Hosting, without having the entire site available? We essentially want to do an "update" deploy, not a "full" deploy. We…
Seth Ladd
  • 112,095
  • 66
  • 196
  • 279
13
votes
5 answers

Firebase Hosting on own server

I am looking for a solution for developing iOS and Android chat to replace our current (unreliable, maybe poorly written by previous devs) XMPP/OpenFire chat. I came across Firebase which looks good. However, I don't quite get the setup for it. Can…
SleepNot
  • 2,982
  • 10
  • 43
  • 72
13
votes
10 answers

Firebase deploy 404 can't find index.html

I'm running firebase init and it's creating firebase.json. firebase.json is in the apps root directory, pointing towards my public directory app. See here: firebase.json { "firebase": "harrison", "public": "app", "ignore": [ …
Himmel
  • 3,629
  • 6
  • 40
  • 77
13
votes
2 answers

Can Firebase hosting restrict access to resources?

Is it possible to restrict access to a resource (i.e. index.html) depending on whether the user is logged in or not? Maybe something like .htaccess?
markovuksanovic
  • 15,676
  • 13
  • 46
  • 57