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.
2,123
questions
0
votes
0
answers
18
views
Firebase hosting next js query url not working
For a project I have the following url:
https://beterbijons.nl/belevingsapp/?name=Natuurleerpad
The website is made with NextJS, when I test this locally I had to add the following code:
/** @type {...
0
votes
0
answers
31
views
How to clear or refresh Firebase Hosting Cache in React Project?
I deploy my personal portfolio website. In my portfolio website, I attached a link that can download my resume in PDF. I regularly update my website when my resume is updated. The problem is when I ...
0
votes
0
answers
29
views
How to write code of HTTP request to upload files to Firebase Hosting
I will like to upload files to a firebase hosting site. I have read through the documentation but I'm not able to write the code to make the http request.
Reference:
https://firebase.google.com/docs/...
0
votes
0
answers
27
views
Get base url for preview build in firebase
I am deploying a preview build through firebase hosting that is generating a url with some random characters, e.g. https://my-app--preview-3wrm825h.web.app.
Part of my website includes letting users ...
0
votes
1
answer
16
views
Firebase Hosting deploys CRA app to 'build' subdirectory
What is happening
When I execute firebase deploy --only hosting given the below folder structure, it deploys the entirety of the ui folder. Meaning, I will have to visit my app at http://my-app.web....
1
vote
1
answer
28
views
Unable to add domain name firebase hosting
I have purchased the domain name as domain-name.in.net from bigrock. But adding custom domain name in firebase, it only considering in.net and not considering domain-name.
Any solutions guys?
Due to ...
0
votes
0
answers
20
views
How do I structure my Firebase Product to render html and return the result with styling and JS?
I've recently started a firebase project using express where I generate html using the following code and return it to the user which is working:
response.render("index", { Element: ...
0
votes
0
answers
10
views
Error with Firebase getAccountInfo POST request editing a Flutter index.html page
I am creating a Firebase web application that hosts a Flutter application as a subpage. After the user has logged in, clicking a button on the landing webpage redirects to "{website.domain.com}/...
-1
votes
0
answers
35
views
Does Firebase Hosting Support the Micro Frontend Pattern?
I would like to build a suite of Angular applications that follow a micro-frontend pattern.
I would like to host them on Firebase Hosting.
I would like to be able to build, test, and deploy each of ...
0
votes
0
answers
28
views
Firebase hosting storage
I am using firebase to host my angular application and CI/CD from Github. But the firebase console is saying that I have consumed 10GB of storage. But let me know how to view storage utilized. I have ...
0
votes
0
answers
7
views
I am changing the database URL for my firebase web app, how do I ensure that all visitors get the new URL from the config instead of the cached?
We initialize our firebase app by injecting the firebase config into the initializeApp function.
The config looks like this:
{
"apiKey": "12345",
"authDomain": "...
0
votes
1
answer
25
views
Firebase best option for storing images
I'm building a personal photography portfolio using firebase and I am not sure on which way of hosting the images is the most efficient / cost effective.
Currently I have the website hosted on ...
1
vote
0
answers
34
views
A website page displays "{ }" but works on localhost
I am using ReactJS for my website and it is deployed through Firebase hosting. One of the pages of the website displays "{ }" on the hosting domain, but it runs fine on localhost. There are ...
0
votes
0
answers
15
views
Serving a react app using express and firebase cloud functions does not work
Hello I am trying to build an firebase cloud functions and hosting a react app by serving it using express js and exposing it using firebase cloud functions. So far I have the following project ...
0
votes
1
answer
15
views
Deep/Dynamic linkning not working in flutter web hosted on firebase
I use go_router package for deep-linking, and the project works as expected, but on localhost.
I go to a page, the adress bar updates accordingly, so does in hosted release page.
The issue comes in ...
0
votes
0
answers
28
views
Unable to deploy to firebase hosting
I deployed to firebase hosting,
after that
I want to delete the duplicate deployed
but I couldn't find a way to delete the hosting
so what I did,
I used firebase deploy hosting:disable sample-project
...
0
votes
0
answers
14
views
Firebase hosting routing redirect to custom html page
I've register.html file in my public folder. so when I access http://localhost:5000/register then I want to show register.html file.
I tried below rule, Also I want to show 404.html when unknown url ...
1
vote
1
answer
45
views
Why can't a CSP be set with Firebase?
I recently went through a pentest from a 3rd party company on my React.js web app, hosting on Firebase Hosting (+ Authentication, Functions, and Storage) and one of the vulnerabilities pointed out by ...
1
vote
1
answer
74
views
React + Firebase App vulnerable to Lucky13 Exploit
I recently went through a pentest from a 3rd party company on my React.js web app, hosting on Firebase Hosting (+ Authentication, Functions, and Storage) and one of the vulnerabilities pointed out by ...
0
votes
0
answers
27
views
hosting: how to rewrite path to parent directory index.html
I have a URL structure with the following pattern, which are just aliases of each other.
example.com/products/sku/index.html
example.com/product/sku/product-slug/index.html
However, I wouldn't like ...
0
votes
0
answers
34
views
Flutter Firebase hosting in release mode produces a 'minified:q<minified:kz>' instead of the list of objects
When deploying Firebase web hosting, instead of a list of custom objects being created from a custom class, I get a list of Instance of 'minified:kz' and the runtimeType is listed as minified:q<...
-1
votes
0
answers
57
views
robots.txt file not accessible in firebase hosting
I am using firebase hosting using Angular application, when I check with Firebase emulator, I see my robots.txt file, but when I deploy the app to firebase. I am not able to access /robots.txt file to ...
0
votes
0
answers
40
views
Deploy React Project in Firebase Hosting
I wrote a project with React.js and I want to deploy it in Firebase hosting but I get the following error:
Error: Failed to list Firebase projects. See firebase-debug.log for more info.
firebase-...
0
votes
0
answers
19
views
Firebase hosting do not rewrite and go on index
I created a website in Flutter and I got only two pages in my website. A HomePage and a DetailPage.
Currently, the HomePage is working well with the rule :
{
"source": "/**",
...
0
votes
0
answers
23
views
Nuxt generate not working in github workflow
I have a nuxt project that I am trying to set up with a Github action to make automatic deployments to Firebase on push/merge to the main branch. I am getting the following error after running the ...
0
votes
0
answers
60
views
Firebase deploy error "page not found This file does not exist ..."
I have created a react app, it's working fine locally. To deploy it in firebase I used firebase init and followed the steps then npm run build and firebase deploy. Now I'm getting this error on the ...
0
votes
1
answer
45
views
Firebase Automated Hosting via Github Error
I have developed a website using Flutter-Web and now I am trying to host it on Firebase.
I have interfaced with git so that every time I commit to master the website will be pushed to Firebase hosting ...
-1
votes
1
answer
24
views
Firebase subdirectory wordpress redirect
I want my wordpress blog under a subdirectory of a Firebase hosting Angular app. domain.com/blog I want to be a wordpress app. I don't want a subdomain as this will not be good for SEO.
0
votes
1
answer
49
views
Can I host the API on Firebase Hosting?
I created an API using PHP and linked it with MySQL for the android app. (There is no front-end)
Is it possible to upload the files and database to Firebase Hosting or does it support only static ...
0
votes
0
answers
32
views
React app working properly locally but not working properly when deployed on firebase styles are different with tailwind css
Package.json
"scripts": {
"start": "craco start",
"build": "craco build",
"test": "craco test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"...
0
votes
0
answers
43
views
How to add app-ads.txt to angular localized project on Firebase hosting
I added app-ads.txt to src folder of my project.
In angular.json added "src/app-ads.txt" to "assets", that is:
"assets": [
....
"src/app-ads.txt" ...
0
votes
1
answer
36
views
Firebase emulator: add build steps to hosting
I'm trying to programmatically build my index.html file from a template, using a custom script/pre-deploy hook.
Is it possible to have the Firebase emulator run my predeploy script either (1) on start,...
0
votes
0
answers
6
views
iFrame: can't display a directory... but only when using Firebase Hosting
I'm having trouble displaying a directory in an iFrame, but only when served via Firebase hosting. For example:
<iframe src="myPublicDirectory/"></iframe>
What's strange is that ...
0
votes
0
answers
66
views
Firebase Hosting "rewrites" to Access Next.js App on Google Cloud Run
We're using Firebase Hosting. We have a Next.js app, called "knowledge", deployed on Google Cloud Run in the same GCP project. We followed the instructions in the Firebase documentation. Our ...
1
vote
1
answer
67
views
"firebase deploy --only hosting" suddenly failing with "Error: Failed to list functions for <PROJECT>"
My firebase hosting deployments have suddenly started failing both in my Github CI Workflows and from my local machine.
$ firebase deploy --only hosting
=== Deploying to '<project>'...
i ...
1
vote
1
answer
28
views
How to programatically deploy to Firebase Hosting?
The problem
I have configured a project that currently is possible to deploy to Firebase Hosting multi sites by using the Firebase CLI.
The problem is that currently I am doing this manually. And I ...
-1
votes
1
answer
83
views
NextJS and Firebase Hosting - Access dynamic route directly, redirects to index.js on production
I haven't found any documentation on this behavior but here it goes...
Basically I have established an index.js page and a dynamic [address].js page.
Problem I'm facing here is that whenever I visit ...
0
votes
2
answers
28
views
Any way to upload DNS records to free Firebase domains?
Firebase provide 2 free domains per project, but is it possible to upload DNS records?
I want to enable Firebase Dynamic Links. Then I need to upload DNS records but I can'T find how to do it.
Anybody ...
0
votes
1
answer
31
views
React application built on top of firebase renders 404 on page refresh
We have a React App built on top of firebase. The problem we are facing is if you change the url by navigating to a different page other than the root '/', then refresh the page, it displays a 404 as ...
0
votes
1
answer
29
views
Firebase keeps redirecting example.com/username to example.com/#/
I am trying to extract the username from the current URL example.com/username but firebase keeps directing it to example.com/#/ due to which username changes dynamically.
The website is built on ...
0
votes
0
answers
20
views
Firebase Hosting pass variables in url
I'm building an app in Flutter mainly based on IOS and Android. We have a review system, and for new signups we want to collect referalls from past customers.
We will accomplsih it like this:
Send ...
0
votes
1
answer
32
views
How to create a variable <username> and insert it in website url like noob.com/<username> hosted on firebase?
I am developing a website using flutter and want to create a link for the website something like noob.com/username for a social profile of the user where username is the variable.
How to create this ...
0
votes
0
answers
44
views
Firebase Dynamic Links - There was a problem with your DNS configuration
I'm working with Flutter app and I wanted to connect deeplinks using Firebase. From backend side I'm receiving deeplink eg. "www.domain.com/en?deep_link=R1" when R1 is ID of item (So this ...
0
votes
0
answers
13
views
CleanUrls not working on my Firebase project
I have a website with 2 html pages. index.html and blog.html. In blog.html I am referencing the #sections on the index.html using tags like index.html#aboutus. When I access the home page(index.html) ...
0
votes
0
answers
17
views
Error: Failed to list Firebase projects. See firebase-debug.log for more info.faill to find list of projects exits
In my React App: Failed to list Firebase projects. See firebase-debug.log for more info.
I have set up serveral projects.
packages are looking for funding
run npm fund for details
4 vulnerabilities (2 ...
0
votes
0
answers
29
views
How to solve firebase deployment related problem? [duplicate]
I tried to deploy my website on firebase. When I deployed the following interface has been showing.
that image has been showing after deploying the site on firebase.
0
votes
1
answer
42
views
Firebase deploy displays welcome screen error message, app link is not working
I'm following all the steps to deploy with Firebase for a React app.
Firebase login
firebase init (completed all the steps)
npm run build
Firebase deploy
The console is showing deploy completed, but ...
0
votes
2
answers
76
views
Vue js can't find page when deployed on firebase
I'm building a stupid web app to do something funny with my friends. I'm using firebase hosting service and discord oauth2. The problem occurs when trying to access "/login" page by typing ...
0
votes
1
answer
58
views
Able to proxy my React app in localhost to heroku server but not on firebase
I was wondering if there was a way to proxy my firebase-deployed app to redirect all requests to a heroku API URL.
{
"name": "denrol",
"version": "0.1.0",
...
0
votes
0
answers
27
views
Firebase Hosting - How do I get HTTP body payload
Firebase hosting has been excellent, up until now. It is very fast and very cheap. Alas, there is absolutely no access to any server-side activities such as you normally would with PHP.
I'm using ...