firebase-hosting

Images not showing up in hosted site

跟風遠走 提交于 2019-12-19 06:27:06
问题 Thanks for taking the time to look at this, I've researched as best I can but am not coming up with anything. I saw a similar stack overflow post about waiting for images to be done processing, but I've been waiting for about 2.5 hours and the images are still missing. I am using angularfire with Firebase. I am using grunt build to create a dist folder and that is what I am deploying to Firebase. The dist folder contains an images folder and firebase says it's uploading 780 files when it

Redirect to Firebase Hosting custom domain

断了今生、忘了曾经 提交于 2019-12-18 12:58:20
问题 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? 回答1: You cannot turn off the subdomain. Your app will always be available on https://myapp.firebaseapp.com and whatever custom domain you've set up. To redirect people, you can add a canonical link to your HTML: <link rel="canonical" href="http://myapp.domain.com/" /

How can I verify my custom domain on firebase using GoDaddy

人盡茶涼 提交于 2019-12-18 09:25:39
问题 I recently created a project on firebase to host my website and I've transfered my data to their subdomain. But I want to connect my own domain ardacebi.com It gave me a TXT file to save from the DNS Manager but I can't save the file. It gives an error at the main machine part. I put the symbol @ but it ignores it. How can I fix this problem or can you suggest me a website or tutorial (an easy one). Thanks for all your help! 回答1: You need to add the TXT records provided by Firebase in your

Firebase CLI: “Configure as a single-page app (rewrite all urls to /index.html)”

若如初见. 提交于 2019-12-18 04:28:07
问题 I just used the Firebase CLI to init a static hosting project. What exactly happens when you enable the "configure as a single-page app" option? I'm looking for a description of exactly which files are modified, and what kind of effect this has on the Firebase backend. 回答1: That option simply sets a flag in the firebase.json file to redirect all URLs to /index.html . "rewrites": [ { "source": "**", "destination": "/index.html" } ] See the documentation of Firebase Hosting for more information

Firebase hosting: How to prevent caching for the index.html of an SPA

谁说我不能喝 提交于 2019-12-17 18:33:10
问题 I'm hosting an SPA on firebase where almost all paths get rewritten to index.html . I'm using webpack hash based cache busting, so I want to always prevent caching of my index.html but not any other files. I'm finding it surprisingly difficult to do so. Specifically, my file layout looks like this / ├── index.html ├── login.html ├── js │ ├── login.ba22ef2579d744b26c65.bundle.js │ └── main.6d0ef60e45ae7a11063c.bundle.js └── public └── favicon-16x16.ico I started naively with "sources": "index

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

隐身守侯 提交于 2019-12-17 18:23:53
问题 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 /fns/register and /fns/verify to the above app register . I've updated my firebase.json file in the cloudfunction microservice project, but when I run firebase deploy --only functions:register it says there is no public folder for deploying the hosting

Unable to figure out why firebase hosting is not using http 2

余生长醉 提交于 2019-12-13 15:32:47
问题 I've set up a fresh hosting project (not using any custom domain at the moment) and split up some of my js files expecting them to be served via http2 (as described in firebase blog posts it should be enabled by default?) However protocol still shows up as http/1.1. Am I missing something? Do I need to add entry in my config files to force http2? DEMO: https://asimetriq-com.firebaseapp.com/ 回答1: Works for me, see attached screenshot. It may mean that you have some transparent proxy that does

Host Docker application on Firebase Static Hosting

淺唱寂寞╮ 提交于 2019-12-13 14:38:02
问题 How can I host an Docker container based app to Firebase static hosting ? Is it even doable/allowed ? Or should I host Docker based apps on services like Digital Ocean / Vultr / Linode / AWS instead ? I'm using Firebase as my main database and since it comes with hosting in the same pricing model I would like to make good use of it and have everything on Google based servers rather than hosting elsewhere (such as Digital Ocean) and connecting to my database which would then be on Google.

Slow running firebase function with Invalid query string segment:

落爺英雄遲暮 提交于 2019-12-13 05:08:29
问题 I have a simple firebase function which is reading a very small amount of data (less than 1kb) but it is taking nearly 2 seconds to complete and has a warning in the logs FIREBASE WARNING: Invalid query string segment: The result is 200 OK, however something strange is clearly going on, a import express from 'express'; import * as functions from "firebase-functions" const cors = require('cors')(); const api = express(); const getJob = async (req, res) => { const { organisation, job } = req

Multiple domains serving independent content with Firebase hosting and Cloud Functions?

别等时光非礼了梦想. 提交于 2019-12-13 04:10:00
问题 I'm designing and building a web app in which users will upload a static HTML template file. My system will parse their template and create JavaScript code for their individual purpose. I want each use to have their own namespace, so ideally the endpoints would look something like this user1.domain.com/index.html user1.domain.com/code.js user2.domain.com user2.domain.com/code.js ... It's not possible to programmatically write static files to Firebase hosting, so I envisaged having a Cloud