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
43
votes
5 answers

How to deploy next.js app on Firebase Hosting?

I am trying to deploy next.js app on Firebase hosting. But I don't understand which files to push to the server. When I run npm run build and pushed the build folder to firebase. But gives error that No index.html file found. Here is the image of…
Heir Of Knowledge
  • 617
  • 1
  • 6
  • 13
42
votes
7 answers

How can I keep Google Cloud Functions warm?

I know this may miss the point of using Cloud Functions in the first place, but in my specific case, I'm using Cloud Functions because it's the only way I can bridge Next.js with Firebase Hosting. I don't need to make it cost efficient, etc. With…
42
votes
7 answers

How does one set private environment variables on Firebase hosting?

With Divshot shutting down recently, I've switched a number of applications over to Firebase hosting. Some of these apps connect to external APIs, so I need a way to store private environment variables (for example, a secret key for S3 access) on…
nrswolf
  • 431
  • 1
  • 4
  • 3
41
votes
3 answers

Firebase Hosting - password protect website?

I have just deployed a website to Firebase hosting and it works great - setup was super easy. My question is, however, is there any way I can make accessing the website limited by authentication? It's an admin panel that only my team should be able…
ryangineer
  • 499
  • 1
  • 4
  • 9
41
votes
26 answers

Firebase hosting not showing up app?

I am new to firebase, and I try to deploy my app to firebase. I have followed all the steps. But, for some reason is not showing up my app. I am getting the welcome modal instead of my web app. Here are the images:
user7960664
41
votes
8 answers

How to clean old deployed versions in Firebase hosting?

Every time you deploy to Firebase hosting a new deploy version is created so you can roll back and see who deployed. This means that each time every file you deploy is stored and occupying more space. Other than manually deleting each deployed…
Pier
  • 10,298
  • 17
  • 67
  • 113
40
votes
2 answers

How can I install wordpress in the firebase hosting?

How can I install Wordpress in the Firebase Hosting ? I tried to find an article to help me to install but I didn't find one.
Muhannad Hassan
  • 501
  • 1
  • 4
  • 4
40
votes
3 answers

Firebase hosting using custom domain has SSL cert pointing to firebase.com

I am able to complete the connect to custom domain step successfully and https://example.com is correctly loading my static file app which is hosted on Firebase. However, browser is warning about the site's SSL certificate is not matching…
webp
  • 1,311
  • 2
  • 13
  • 16
38
votes
4 answers

When I refresh my website I get a 404. This is with Angular2 and firebase

When I refresh my website I get a 404. This is with Angular2, typescript and firebase. I've deployed to firebaseapp with my Angular2 app. Routes seem to change fine but when I refresh the browser it redirects me to 404 page. When I refresh locally…
AngularM
  • 15,982
  • 28
  • 94
  • 169
37
votes
13 answers

Blank page after successful Firebase deployment

My ReactJs application runs fine on my local box, when I use the npm start command. However when I try to deploy my application using the firebase init to Firebase, I am seeing a blank page. What could I be doing wrong? Update: I had to edit the…
Ajit Goel
  • 4,180
  • 7
  • 59
  • 107
36
votes
5 answers

DNS - Firebase connect to Namecheap still says Needs setup?

Ok, it has been less than 24 hrs but more than 10, and I find it odd that I am still getting a status of Needs setup in Firebase just trying to redirect to a custom domain, bought with Namecheap. I don't know what Im doing wrong but I still get the…
blue
  • 7,175
  • 16
  • 81
  • 179
36
votes
1 answer

How do I add SSL with Firebase Hosting?

I uploaded my angular 4 project to Firebase Hosting and it works well on Firebase's domain. However, when I connect it to my custom domain it should use SSL but as you can see on the image below, SSL is not active. How do I set up SSL with Firebase…
Burak Taban
  • 429
  • 1
  • 5
  • 11
36
votes
4 answers

firebase cloud function won't store cookie named other than "__session"

i followed the sample of authorized-https-endpoint and only added console.log to print the req.cookies, the problem is the cookies are always empty {} I set the cookies using client JS calls and they do save but from some reason, I can't get them on…
33
votes
10 answers

New project not showing on firebase CLI

I have recently had an issue with my firebase account where any new projects don't show in the CLI when I run firebase init. I deleted a project I didn't need, and that updated immediately, any help is greatly appreciated!
Max S.
  • 455
  • 1
  • 5
  • 10
33
votes
9 answers

firebase hosting blocking script due to CORS issue

I am using firebase hosting to host few scripts and trying to access them from another site. it naturally gets blocked due to CORS issues. based on my research on other forum threads etc i modified the firebase.json as below { "hosting": { …
Vik
  • 8,721
  • 27
  • 83
  • 168