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
32
votes
10 answers

Angular 6.0 firebase hosting deploy not working

I am looking for a tutorial on how to properly setup the firebase-tools hosting on my angular 6.0 projects, and what I found is always like this. - firebase init - then select the Hosting - What do you want to use as your public directory? dist -…
dotGitignore
  • 1,597
  • 2
  • 15
  • 34
32
votes
8 answers

Firebase hosting with react router

I have a react app that uses react-router with a Router that looks like:
The app is hosted…
astrojams1
  • 1,523
  • 2
  • 15
  • 29
29
votes
1 answer

How to Leverage Browser Caching in Firebase hosting

I have hosted my personal blog on Google's firebase. My Blog is based on jekyll. Firebase provides firebase.json file from where owner of project can modify the http header. I have my css files https://blogprime.com/assets/css/init.css and my fonts…
John Adam
  • 441
  • 4
  • 11
28
votes
1 answer

Can I use a wildcard subdomain with my custom domain?

Just checking to see if anyone knows if this is possible yet. I would like to use a wildcard subdomain with firebase hosting and use functions to parse the subdomain.
Gilberg
  • 2,514
  • 4
  • 31
  • 41
28
votes
3 answers

Firebase Storage very slow compared to Firebase Hosting

Anyone know why firebase storage would be so ridiculously slow compared to firebase hosting? Results Time to download image of firebase hosting: 16ms Time to download same image from firebase storage: 2.23s (2.22s is TTFB) Time to download same…
ro-savage
  • 1,131
  • 2
  • 9
  • 9
27
votes
5 answers

Cloud Functions for Firebase: 'Error: could not handle the request'

I feel like pulling my hair out; this is either super simple and i'm having brain freeze or it is not that simple. What I want I am trying to unshorten a shortened URL using firebase, when a user goes…
27
votes
5 answers

Firebase Hosting with dynamic cloud functions rewrites

I have an express.js based cloud functions app on firebase in a function named api. To use a custom domain, I'm trying to use Firebase Hosting rewrites to route the specific URL to the function. I'm following the official documentation about cloud…
27
votes
3 answers

What is firebase and how to use it in Android?

I want to create an android app, where I, as an author, upload my college notes and anyone can download it. I read that firebase can help me with this. Can anyone please explain what is firebase and how to use it with my reference? Thank you!
26
votes
3 answers

How to configure rewrite rules inside firebase-hosting to route certain requests to cloud functions?

I've a PWA built using polymer 2.0 and polymerfire and is my web application. I've an express app acting as a cloud function (microservice). Example: exports.register=functions.https.onRequest(app); How to add the rewrite rules to map say…
Phani
  • 1,851
  • 2
  • 15
  • 28
26
votes
2 answers

Is it possible to create a new Firebase project by API?

Is it possible to create new hosting projects by API, or another non-interactive method on Google Firebase? I already tried Firebase tools with a token, but it says that it is only possible to create a new project on Firebase Console. Some…
25
votes
2 answers

firebase hosting multiple sites configure .firebaserc file

I have firebase hosting working successfully in my project however I want to use the same database for a different site on a subdomain so I thought I would click add another site on firebase hosting. I can configure the a records etc for the domain…
ak85
  • 4,154
  • 18
  • 68
  • 113
25
votes
3 answers

Does firebase hosting benefit from CloudFlare?

I was looking at https://material-ui-next.com who seem to be running on firebase hosting and use CloudFlare on top of it. This raised a question. Do firebase hosting websites need additional layers for things like DDoS protection? As as I am aware,…
Ilja
  • 44,142
  • 92
  • 275
  • 498
25
votes
7 answers

Error shows 'cannot find module firebase-functions' when deploying a firebase project

When I am trying to deploy a firebase project it shows an error message 'cannot find module firebase-functions' in npm console.The steps(node commands) I have done are: npm install -g firebase-tools firebase login firebase init and finally where I…
25
votes
0 answers

How can I see what files are deployed to Firebase hosting?

I'm using Firebase hosting. I've deployed my site numerous times, with various iterations of the ignore setting in my firebase.json file. I'd like to check the correctness of this setting by getting a listing of what files are currently deployed to…
Andrew Swan
  • 13,427
  • 22
  • 69
  • 98
24
votes
3 answers

Is it possible to require a password to access a site hosted on firebase?

I'm hosting a site using firebase and want to be able to prevent people from accessing it, tried using a .htaccess file, wondering if anyone has been able to do it before.
Tyler Iguchi
  • 1,074
  • 8
  • 14