firebase-hosting

DNS - Firebase connect to Namecheap still says Needs setup?

时光怂恿深爱的人放手 提交于 2019-11-28 20:11:50
问题 Ok, it has been less than 24 hrs but more than 10, and I find it odd that I am still getting a status of Needs setup in Firebase just trying to redirect to a custom domain, bought with Namecheap. I don't know what Im doing wrong but I still get the "insecure connection" error trying to access my site. Here are the records specified in Firebase to be added to my Namecheap records: Namecheap is in accordance: I used @ for the same host as specified by Namecheap - is something wrong? How long

Property 'firebase' does not exist on type { production: boolean; }

丶灬走出姿态 提交于 2019-11-28 18:33:33
So I was trying to build and deploy my Angular 4 app for production on both Firebase and Heroku, but I have come across the error as follows: ERROR in /Users/.../... (57,49): Property 'firebase' does not exist on type '{ production: boolean; }'. It occurs when I run ng build --prod , and my deployment servers are working perfectly fine. Here is my app.module.ts file, for reference: import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { AngularFireModule } from 'angularfire2'; import {

Firebase Hosting on own server

时光毁灭记忆、已成空白 提交于 2019-11-28 13:29:04
I am looking for a solution for developing iOS and Android chat to replace our current (unreliable, maybe poorly written by previous devs) XMPP/OpenFire chat. I came across Firebase which looks good. However, I don't quite get the setup for it. Can I host Firebase on my own server and not have to subscribe to any of Firebase's plans? Firebase offers a few products: the Firebase realtime database Firebase hosting (for hosting static resources) Firebase authentication I think you are looking for the Firebase realtime database. There is no way currently to host the Firebase realtime database on

Upload rails app to firebase

白昼怎懂夜的黑 提交于 2019-11-28 12:49:12
I was wondering if there is a way to upload a rails app to firebase? If so can someone tell me how I can't seem to do it. I've tried altering the firebase.json file for my public path from "." to "app/views/pages" and try to deploy but a message keeps displaying that "can't find index.html in your public folder." If anyone can shed some light on this thanks in advance. Firebase hosting is a product to serve so-called static application, which consist only of files that the client interprets. Firebase's servers will not interpret any code that you upload. So Firebase hosting is not suited to

Firebase Hosting set up issue

 ̄綄美尐妖づ 提交于 2019-11-28 11:23:24
I'm just trying to do a simple set-up for hosting on firebase. I'm following the instructions at ( https://www.firebase.com/docs/hosting/guide/deploying.html ) but I'm missing something because I keep getting an error of: 'firebase' is not recognized as an internal or external command, operable program, or batch file." What I've done: Installed nodejs. Set PATH = to C:\Program Files\nodejs; via control Panel in cmd: cd C:\Program Files\nodejs npm install -g firebase-tools changed directory to folder with my html files tried running both firebase app init and firebase init neither of which work

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

≯℡__Kan透↙ 提交于 2019-11-28 07:00:17
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 configuration! { "hosting": { "rewrites": [{ "source": "/fns/**", "function": "register" }] } } Maintaining

Obtaining JSONP files from Firebase hosting through Angular

我怕爱的太早我们不能终老 提交于 2019-11-28 06:12:36
问题 I am trying to obtain a .json file from remote firebase server. function fetchData(remoteJsonId){ var url = "https://myAppName.firebaseapp.com/topics/"+remoteJsonID; console.log(url); //This variable expands to the full domain name which is valid and returns success both on wget and the browser $http.jsonp(url).then( function(resp){ }, function(err){ console.log(err.status) // This posts "404" on console. } ); } But If I open url in the browser the json file loads. Even if I wget url the json

Firebase hosting: Serve different pages from different custom domains

ぐ巨炮叔叔 提交于 2019-11-28 04:57:00
问题 We're using custom domains on firebase hosting: our app, served from index.html, runs nicely on app.example.com. We've also connected www.example.com, which serves the app as well. The problem is: on www.example.com I want to be able to host a simple static page. Is there a way to configure this in the rewrites? We can easily output an extra html file in the deploy, next to index.html. Any ideas? Our firebase.json: { "database": { "rules": "database.rules.json" }, "hosting": { "public":

Firebase Hosting: Preventing unauthorized access to URL

雨燕双飞 提交于 2019-11-28 04:24:57
问题 I am trying to secure some pages behind firebase auth -however every time I try open them - I seem to be able to browse to them. Even when I follow the documentation. I can't seem to find anyway to restrict the page to be accessible only to authorized users. Any idea how best to approach this? Edit: Looks like its not supported directly without building a lot of custom code. It would be brilliant if they can support a simple htaccess file or similar. - Here is a link to post feature request

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

若如初见. 提交于 2019-11-28 03:01:30
问题 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 my DNS settings, but I can't remove it. I don't see how it would get in the way of firebase's verification of my domain either. I'm using Namecheap if that helps. Thanks in advance! 回答1: I had to make sure that for the host field, it was set to '@'