firebase-hosting

Firebase hosting showing welcome page after deploying angular 6 app?

点点圈 提交于 2019-12-11 16:58:39
问题 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 (*) Hosting: Configure and deploy Firebase Hosting sites What do you want to use as your public directory? (public) dist Configure as a single-page app (rewrite all urls to /index.html)? (y/N) y File dist/index.html already exists. Overwrite? (y/N) y Firebase

Firebase Hosting - How to prevent access for some files

跟風遠走 提交于 2019-12-11 15:57:21
问题 I have couple of html files in public folder at firebase hosting listed as below. index.html content_1.html content_2.html app.js app.css consider domain name is example.com as of now user can access all these file using syntax example.com/content_1.html or example.com/app.css. is it possible to prevent direct access to these files but index.html ? I use these files while building the index.html through jquery In Apache would have used Order allow,deny and Allow from all at httpd.conf, but

My react project not working after deploy to firebase hosting

走远了吗. 提交于 2019-12-11 15:22:33
问题 I'm following the instruction of this site and I'm already trying with an empty create-react-app project and It's working fine But when I'm trying with my existing project after deploy process was done It said Firebase Hosting Setup Complete You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary! So I'm pretty curious what I missing here's package.json { "name": "iplace", "version": "0.1.0", "private": false, "dependencies": {

Firebase hosting issues

我的未来我决定 提交于 2019-12-11 10:51:07
问题 I have a basic node js app using express-jade files. I wanted to deploy it onto my firebase a/c. When I use firebase deploy command, I keep getting : Preparing to deploy Public Directory... Public Directory Warning - Public directory does not contain an index.html And honestly, I don't have an index.html file coz I am using jade files. I am a newbie in client side related items so any help would be appreciated. Here's how my fiebase.json file looks like: { "firebase": "torrid-heat-237",

Angular5 Universal lazy loading on firebase hosting and seo

倾然丶 夕夏残阳落幕 提交于 2019-12-11 06:04:28
问题 Does anyone know howto get lazyloading on firebase hosting working? It all works but when I view the source code of my site, I only see the router-outlet and not the text and so on. I've added the code below to my index.js inside the functions folder: extraProviders: [ provideModuleMap(LAZY_MODULE_MAP) ] My app.server.module file looks like this: import { NgModule } from '@angular/core'; import { ServerModule } from '@angular/platform-server'; import { AppModule } from './app.module'; import

Firebase functions: koa.js server how to deploy

情到浓时终转凉″ 提交于 2019-12-11 00:27:47
问题 I already have an app written in MERN stack with koa server prepared build version. My main node file to run by node server.js command to start the whole app looks like this. In every tutorial, I see that I need to add functions.https.request etc. in the beginning of coding (or at least to suppose doing it). How could I host my app on firebase the same as I could on heroku - with whole server side? 回答1: You can't deploy and run an arbitrary node app on Cloud Functions. You have to make use of

Firebase Hosting, disable HTTPS?

守給你的承諾、 提交于 2019-12-10 18:03:39
问题 Is there any way to disable HTTPS with Firebase hosting? The reason I need this, is that, I've built a site that lets you embed iframes from other sites, and security rules disallow me from embedding an HTTP frame inside of my HTTPS site. 回答1: No. All traffic coming into and going out of Google is encrypted. 回答2: In documentation written: "After we verify domain ownership, we provision an SSL certificate for your domain and deploy it across our global CDN. This process can take several hours"

How can I update home screen icon of my Progressive Web App?

无人久伴 提交于 2019-12-10 17:53:45
问题 I am learning progressive web apps, and I have created on angular application that has all the PWA configuration. Then I hosted that application on firebase and opened it on my android phone and successfully got the prompt saying add the app to home screen. But now I have changed the app icon in the manifest file and in the index.html file then deployed the app again but the home screen icon on my phone is not updating. I have tried uninstalling the app then reinstalling but still it displays

Access-Control-Allow-Origin added to firebase.json but missing from the file response header

你说的曾经没有我的故事 提交于 2019-12-10 16:01:47
问题 Below is my simple firebase.json. If I read the docs right it should tag all files with 'Access-Control-Allow-Origin'. Unfortunately none of the files are being tagged resulting in the error: Imported resource from origin 'https://gaspush.firebaseapp.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Could someone take a look and let me know how to properly allow all files to all endpoints?

Images not showing up on firebase hosted website

陌路散爱 提交于 2019-12-10 15:54:52
问题 i run command firebase deploy in my Project/public folder which contains index.html , main.css and an images folder, my webpage is hosted but images are not showing up in my webpage. 回答1: I faced the same problem. Resolved it by providing relative path urls example: Instead of using img src="User/local/..../img/pic.png use img src="img/pic.png" where img is folder in public directory containing all the images Since firebase console is reading your page from public directory,( which you might