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

Firebase hosting deploy to other site

how to deploy to other firebase hosting sites defined within the same project. I created multiple firebase hosting "sites". The command firebase deploy however always deploys to the first one. How can I specify that the static files get deployed to…
Stefan
  • 381
  • 1
  • 2
  • 4
23
votes
1 answer

React production router 404 after deep refresh firebase

i have this routes in my index.js
Abel Olguin Chavez
  • 1,350
  • 1
  • 12
  • 24
23
votes
2 answers

Firebase hosting with multiple directories at multiple domains

I have the following setup and wanted to know how to best configure Firebase hosting I have a repo with the /build directory with three subdirectories: /build/a /build/b /build/c I'd like to serve each directory at its own domain (or domain) in…
Swaraj
  • 1,235
  • 1
  • 13
  • 22
23
votes
22 answers

"An unexpected error has occurred" after firebase deploy

When I am hosting my web page through firebase hosting then after writing command firebase deploy I got the following error: Microsoft Windows [Version 10.0.14393] (c) 2016 Microsoft Corporation. All rights…
Amarjeet Kumar
  • 231
  • 1
  • 2
  • 3
23
votes
2 answers

How can I get firebase deploy --email or --token parameters to work?

I'm having trouble deploying travis CI with firebase using these firebase commands: firebase deploy --email ${FIREBASE_USERNAME} --password ${FIREBASE_PASSWORD} firebase deploy --token ${FIREBASE_TOKEN} It does not like --email option and it does…
jhlosin
  • 555
  • 1
  • 6
  • 17
22
votes
3 answers

Firebase, Flutter Web App Works locally, but when deployed images are not shown

I have a flutter web app which works well locally but after deploying it using firebase deploy the images are not shown in the website, I have checked if the assets have been uploaded by tracing, e.g. my_app.firebaseapp.com/assets/assets/card.jpg.…
Sarvesh Bhatnagar
  • 1,012
  • 11
  • 20
22
votes
2 answers

How to turn off default domain in firebase hosting

I am hosting a site on Firebase hosting. It has a default URL of myapp.firebaseapp.com. I have configured a custom URL for my app and it is sub.domain.com. The issue i am having is that both are still accessible. Users can access the app from…
Cody M.
  • 275
  • 2
  • 10
22
votes
5 answers

How to change Firebase project directory

I have installed Firebase hosting project into my machine by referring following docs: https://firebase.google.com/docs/hosting/ Now, I want to change the location of my project directory. Wha should I do for this? Till now I have tried by relogin…
Faisal Shaikh
  • 3,900
  • 5
  • 40
  • 77
22
votes
3 answers

Redirect to Firebase Hosting custom domain

I have setup a custom domain with Firebase Hosting (eg. myapp.domain.com). How can one redirect (or turn off) the default Firebase Hosting URL (eg. myapp.firebaseapp.com) so that the app is only accessible from the custom domain?
bostondv
  • 415
  • 4
  • 8
22
votes
2 answers

Upload single file to firebase hosting via CLI or other without deleting existing ones?

Question: How to upload a single file to firebase without deleting existing files? Details: Intent: upload single file without deleting existing files on server Usage: have separate directories on local machine each uploading to a specific folder…
adamszone
  • 223
  • 1
  • 2
  • 5
21
votes
4 answers

Firebase action-hosting-deploy fails with RequestError (Resource not accessible by integration)

Firebase action-hosting-deploy fails with RequestError (Resource not accessible by integration) I am trying to follow https://firebase.google.com/docs/hosting/github-integration to start automatically pushing my code to be hosted by Firebase. I've…
ppt
  • 946
  • 8
  • 18
21
votes
10 answers

Firebase Deploy complete but website not shown

it's my first time using Firebase. I deployed my angular project with the Firebase CLI, but when i navigate to the specified domain, i only see Welcome Firebase Hosting Setup Complete You're seeing this because you've successfully setup…
SHRX
  • 559
  • 1
  • 6
  • 17
21
votes
1 answer

URL Rewrite based on User-Agent header

You can optimize content by delivering only Open Graph meta tags to the crawler and only the content itself to regular users. [source] I'm trying to identify Facebot(Facebook's crawler) so I can serve it the meta tags. To do that, I'll need to be…
21
votes
1 answer

Firebase hosting with only ONE A record

I have my client's domain registered via 1and1.com To connect the domain to the Firebase hosting, Firebase asks me to add TWO A records with 2 IPs. In 1and1 we can only add ONE A record. Yesterday Firebase sent me this message by mail Please…
Nani
  • 317
  • 5
  • 15
20
votes
4 answers

angular-cli Firebase hosting Angular 2 router not working

I am trying to host an angular 2 app (created with angular cli) with Firebase but my routes are not working. I created a project with angular 2 and typescript for a site I am working on where I want a static privacy-policy page. When I perform ng…
Philip Brack
  • 1,340
  • 14
  • 26