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
12
votes
1 answer

Can I deploy a firebase preview channel to my custom domain?

I have a custom domain setup in firebase hosting that works fine. When I create a preview channel though it always creates it at the default "web.app" domain. I tried just replacing "web.app" in the preview channel url with my custom domain but got…
Alex Egli
  • 1,884
  • 2
  • 24
  • 43
12
votes
3 answers

Firebase default hosting domains: only .firebaseapp.com works but .web.app fails

I'm building a very simple one-page react application using typescript. I tried hosting it using Firebase Hosting. Surprisingly, only the domain [name].firebaseapp.com works but [name].web.app shows the "Site not found" default page: site-not-found…
Sableur
  • 236
  • 1
  • 10
12
votes
3 answers

Deploy environment variables to Firebase hosting

I use Firebase in React and when initializing Firebase, I use environment variables fetched from my .env file with dotenv. I want to build and deploy my React app to Firebase hosting, I use GitHub Actions with the following .yml workflow file: name:…
12
votes
1 answer

Invalidate Firebase cache for Google Cloud Function on deploy

I have recently implemented SSR with Cloud Functions and Firebase Hosting. When the JS bundle is built it receives a cache bursting suffix (main.1.js). Inside my function I have the following piece of code for caching the results of the Cloud…
12
votes
1 answer

Proxying external API for Firebase Hosting?

We created static one page WEB application that uses external API for authentication and data. We set dedicated URL space prefixed with /api to solve cross domain restrictions with reverse proxy. Proxying works fine with Ngnix, Apache on local setup…
gavenkoa
  • 45,285
  • 19
  • 251
  • 303
12
votes
2 answers

using "firebase deploy" to deploy to hosting - how does firebase know if it is deploying to hosting and not cloud functions?

I have a firebase project setup and I want to use that same project for both an iOS app and to host a website. I built a basic iOS app. On my desktop I have a folder: myiosproject - iOS - firebase - functions - index.js I…
Mike
  • 1,281
  • 3
  • 14
  • 41
12
votes
5 answers

You are initializing in an existing Firebase project directory

How do I change the Firebase project in my cli? When I run firebase init, it says: Before we get started, keep in mind: * You are initializing in an existing Firebase project directory ? Are you ready to proceed? (Y/n) It never asks on which…
user2828442
  • 2,415
  • 7
  • 57
  • 105
12
votes
7 answers

Getting 'Cannot GET /' when trying to connect to localhost:5000 Firebase

I am trying to get my localhost server on Firebase to work but I am continuing to get the following message in the browser 'Cannot GET /'. I took a look in the console and all it says is 'http://localhost:5000/ 404 (Not Found)'. I have tried…
sinake
  • 149
  • 1
  • 1
  • 7
12
votes
12 answers

firebase-tools error: EACCES: permission denied

I am trying to deploy Firebase hosting of my web app. At the command line, when I type firebase deploy, I get the following error. Note: firebase deploy is just one example. The same error occurs for all firebase commands. (e.g., firebase --help,…
Let Me Tink About It
  • 15,156
  • 21
  • 98
  • 207
12
votes
3 answers

Adding custom hosting domain: "Unexpected TXT records found. Continuing to watch for changes."

I'm attempting to add a custom domain to firebase hosting. Added the TXT records as instructed, and I get this message in the firebase dashboard: "Unexpected TXT records found. Continuing to watch for changes." There is one additional TXT record in…
Tyler Biscoe
  • 2,322
  • 3
  • 20
  • 33
12
votes
6 answers

Firebase Hosting Custom Domain - site not "Go Live" after update DNS records by "CNAME records" method

My domain verification process is completed and i also update my domain's DNS records to point to Firebase using "CNAME records" method (updated before approx 96 hours) but my site was not "Go Live". In Firebase console Hosting menu that give me…
Jaldeep Asodariya
  • 260
  • 1
  • 3
  • 11
11
votes
2 answers

Unable to login Firebase with cli command

I'm trying to login to my Firebase account with cli command firebase login. I believe it should open browser and prompt me to login with my google account, but that doesn't seem to happen. Instead, it's asking me to enter my email and password in…
Vinay Sharma
  • 3,291
  • 4
  • 30
  • 66
11
votes
1 answer

"Record already in use" when trying to add A record to custom Firebase site

I'm currently connecting a custom site to Firebase hosting. Firebase has given me the following error: We expected these A records Host: my.app Values: 151.xxx.1.xxx 151.xxx.85.xxx We found these A records Host: my.app …
Zorgan
  • 8,227
  • 23
  • 106
  • 207
11
votes
11 answers

Firebase hosting showing welcome page after deploying angular 6 app?

I want to develop the angular 6 apps, but after deploying firebase showing only welcome page. Here are the steps I have taken to deploy. installed firebase-tools ng build --prod (in my app) firebase init Are you ready to proceed? (Y/n) y (*)…
rahul Kushwaha
  • 2,395
  • 7
  • 32
  • 64
11
votes
4 answers

Firebase Hosting rewrite doesn't redirect to Google Cloud Run

I am setting up a redirect(rewrite) with my firebase hosting so that I can call an api that is running from google cloud run here. I have tried changing the rewrite string from "/api/**" (should catch all things to page.com/api/** and send that to…
Drew Hutton
  • 183
  • 1
  • 9