firebase-hosting

Use apex domain and subdomain for different firebase projects

为君一笑 提交于 2019-12-25 07:31:10
问题 For my personal site, I have a firebase project (using firebase hosting) which is alloted to my apex domain (http://exmaple.com), and I have another firebase project, which I want to allot to a subdomain of the same apex domain (http://subdomain.example.com), but firebase doesn't allow me to do that, any workarounds? 回答1: "This is currently a limitation of how custom domains work on Firebase Hosting. We're exploring ways to improve and make it possible to reuse the same apex domain across

domain with www prefix not working on firebase hosting

孤人 提交于 2019-12-25 01:48:44
问题 i deployed vuejs app on firebase hosting with custom domain from godaddy connected to it with google provided A records. when i enter mywebsite.com it works . but when i enter www.mywebsite.com it doesn't redirect and shows error certificate . i want the www redirect to a non-www domain( example.com ) how to redirect ? how to solve this please any help? 回答1: You need to add a CNAME record for www as canonical name for it to work. 来源: https://stackoverflow.com/questions/53429442/domain-with

Does Firebase Hosting support rewrite rule to Python Cloud Function not deployed by Firebase?

我与影子孤独终老i 提交于 2019-12-24 23:36:55
问题 Firebase Hosting can be configured to direct requests to a Cloud Function: Will that work for a Python Cloud Function deployed directly to Cloud Functions, i.e., not using firebase deploy ? That is particularly relevant for Python Functions, as Firebase can only deploy Node.js Functions. 回答1: I've verified that this use case is supported. You can deploy a python cloud function using the gcloud cli, and then deploy a url to your firebase hosting target that rewrites to this python function.

Error deploying Angular application on Firebase

只谈情不闲聊 提交于 2019-12-24 12:16:25
问题 I tried deploying my angular 4 application on firebase but the setup did not ask me for any configuration as mentioned here: https://alligator.io/angular/deploying-angular-app-to-firebase/ and many similar answers on stack. Out of following 5 steps that firebase cli runs through on running firebase init , I was only asked for step1 and not for others. Firebase CLI features…: Hosting. Database rules file: You can keep that default file name that they provide, or change it if you prefer. This

Firebase Function not returning expected environment configuration when served locally

白昼怎懂夜的黑 提交于 2019-12-24 10:38:49
问题 I have a React App hosted on Firebase Hosting that retrieves environment configuration values via a call to a Firebase Function (an impl recommended here). Here is the implementation of the function: const functions = require('firebase-functions'); module.exports = functions.https.onRequest((req, res) => { res.status(200).send(functions.config()); }); From the Firebase CLI, when I call: firebase functions:config:get I see: { "auth": { "clientid": MY_CLIENT_ID, "signoutreturnto": SOME_URL,

Unable build the angular 2 project using ng build --prod

血红的双手。 提交于 2019-12-24 09:24:38
问题 I have created a angular 2 project using angular material. I am trying to host my project using firebase deployment process. My application is successfully running on my server.But when I am trying to build my application its giving me the following error as shown below in the image. please help me to resolve this 回答1: Solution : for let- is only support for ng-template error. You have use let-variablename some where in you html side. The error says you can't use it anywhere instead of ng

Google Domain - How to remove/disable default domain after adding custom domain?

不问归期 提交于 2019-12-24 07:00:06
问题 I have added custom domain in firebase hosting and still I am able to access the default domain created by firebase. I want to remove that default domain for SEO perspective. How do we remove it? 回答1: firebaser here There is no way to remove the *.firebaseapp.com domain from your Firebase Hosting app. 来源: https://stackoverflow.com/questions/45058710/google-domain-how-to-remove-disable-default-domain-after-adding-custom-domain

Firebase Functions version of “Deploy to multiple environments”

ⅰ亾dé卋堺 提交于 2019-12-23 05:07:26
问题 As suggested here: "https://firebase.googleblog.com/2016/07/deploy-to-multiple-environments-with.html", one should use multiple projects (preferably name-differentiated into dev, staging, production, etc) to be able to have a test environment like that on Firebase Hosting. But again, this document speaks about this approach in the context of Firebase Hosting. Is the same to be followed for Firebase Cloud Functions, if I do not want to update my already live, "production" function before

firebase.json rewrites issue for nodejs/vuejs firebase hosting?

亡梦爱人 提交于 2019-12-23 03:15:35
问题 i do not know exactly what problem i'm facing. here is my console out I have client side and server side. In client side, developing front-end using vuejs. server side used node js/express.js for sending data to front end. i have already deployed my project into firebase hosting. configured firebase json too. Client side: client-> service->Api.js import axios from 'axios' export default() => { return axios.create({ baseURL: `https://dev-cloudthrifty-com.firebaseapp.com` // https://dev

Connecting domain name from namecheap to firebase

扶醉桌前 提交于 2019-12-23 02:52:31
问题 Has anyone encountered this bug for connecting to firebase hosting with namecheap? 回答1: You need to put "@" , in the A records for Host instead of your url(ex: devspace.co). 回答2: I had the same issue and spoke with both Firebase and NameCheap support. Turns out that Firebase doesn't like to see any other addresses but it's own, and NameCheap's "URL Redirect" entry that appears to be on by default causes the extraneous A record to show up. 来源: https://stackoverflow.com/questions/43555274