firebase-hosting

how can I force to visit my site by 80 port?

拜拜、爱过 提交于 2019-12-04 05:54:58
问题 I created one website on Firebase, now I want to move the website out from firebase. On the new hosting server, the website url keeps visiting 443 port. How can I force the port change? Is there any cached on the web browser I need clean them up maybe? I want to make it 80 port by default. 回答1: Firebase Hosting will only serve traffic over HTTPS, so port 443. There is no way to force traffic to be served over non-secured HTTP. But traffic coming in to port 80 will (or at least should )

How to access environment-specific Firebase Function endpoints from Firebase Hosted application?

好久不见. 提交于 2019-12-04 05:50:27
问题 I have three Firebase projects representing Development, Staging and Production environments hosted on Firebase hosting. Each environment utilizes its own deployed Firebase functions like so: Dev function endpoint: https://us-central1-my-app-dev.cloudfunctions.net/someFunction Staging function endpoint: https://us-central1-my-app-staging.cloudfunctions.net/someFunction Production function endpoint: https://us-central1-my-app.cloudfunctions.net/someFunction I can't figure out how the static,

Port and Proxy Config on ng-build

亡梦爱人 提交于 2019-12-04 05:44:24
I have a frontend running for example on int.myapp.com and it's backend on int.backend.myapp.com. I thought I can do the proxing with the proxy.config.json like this: "/api": { "target": "https://int.backend.myapp.com", "secure": true, "changeOrigin": true } And in my package.json file "start": "ng serve --proxy-config proxy.conf.json" Everything works on my dev environment. But when I build for production : ng buil --prod and deploy on firebase firebase deploy The web application is not able to communicate with the API How can I do to fix it ? "build": "ng build --prod --proxy-config proxy

How to get external data without CORS headers with Firebase hosted webapp?

一世执手 提交于 2019-12-04 04:21:02
问题 I have my Ionic2 app hosted on Firebase. What I need is to get external data from an API service where No 'Access-Control-Allow-Origin' header is present on the requested resource I can work around it locally by using proxies in ionic.config.json file: "proxies": [ { "path":"/api", "proxyUrl": "https://api.somwhere.com/" } ] But I have no idea how to deal with this after deploying my app to Firebase. Is it somehow possible? 回答1: The Firebase docs have an example of setting the Access-Control

Can I use Firebase Hosting to write a RESTful API in Node.js [duplicate]

不想你离开。 提交于 2019-12-04 03:32:27
This question already has answers here : Closed 2 years ago . Hosting nodeJS app with firebase (3 answers) Let's take for example the server.js Hello World var http = require("http"); http.createServer(function(request, response) { response.writeHead(200, {"Content-Type": "text/plain"}); response.end("Hello World"); }).listen(80); How can I use it in Firebase ? Sorry for the duplicate but the answers were 3yo (Update: Now the answer is: Yes, you can - see updates below) Original answer No, you can't. Firebase hosting is only for static content. See: https://firebase.google.com/docs/hosting/

How Do I Remove This Error in Firebase: “This domain is already in use.”?

孤街浪徒 提交于 2019-12-04 01:18:29
I'm trying to add a custom domain to an existing project but keep getting the error that "this domain is already in use." I'm not using this domain anywhere else in any other project. There is only 1 other forum post ( http://grokbase.com/t/gg/firebase-talk/165r5n78nq/firebase-domain-is-already-in-use ) about this error but following the step provided leads to zero results. Dolapo Toki If you are getting that error it means that you're already using the domain in a project. You probably deleted the project but did not disconnect the domain before it was shut down. In this case, you can either

Firebase hosting - force browser to reset cache on new deploys?

╄→гoц情女王★ 提交于 2019-12-04 01:09:33
I have a site built with create-react-app and hosted on Firebase Hosting. What can I do to specify the browser cache needs to be updated after new deploys, and ideally only for pages, assets, and stylesheets that have been changed since the last deploy? Is there a way to access the deploy id and include that (or any other unique identifier) in the headers so the browser can compare to what it has in local storage or cache and determine whether a hard refresh is necessary? I looked over the Firebase Deploying as well as Full config docs but there's no mention on how to access hosting metadata

Firebase hosting with only ONE A record

感情迁移 提交于 2019-12-04 00:45:01
I have my client's domain registered via 1and1.com To connect the domain to the Firebase hosting, Firebase asks me to add TWO A records with 2 IPs. In 1and1 we can only add ONE A record. Yesterday Firebase sent me this message by mail Please re-verify ownership of www.*******.com on *******-website. The previous verification for this domain has been invalidated. You have 1 day to re-verify ownership of www.*******.com before it is removed from Firebase Hosting, which will stop all content from being served from the domain. Please visit the Firebase Hosting Panel to start the re-verification

How can I install wordpress in the firebase hosting?

时间秒杀一切 提交于 2019-12-03 23:39:57
How can I install Wordpress in the Firebase Hosting ? I tried to find an article to help me to install but I didn't find one. WordPress requires PHP to run on the server and Firebase Hosting can't run server-side code (no PHP) but only static content (html, images, js, etc). So the answer is, you can't install WordPress in the Firebase Hosting. You can't install the dynamic version of Wordpress. Instead, you can create a static version of Wordpress using a plugin called Simply Static. Check it here: https://wordpress.org/plugins/simply-static/ It will export your site to html so the server won

HTTPS iframe inside a HTTPS page not working

流过昼夜 提交于 2019-12-03 16:53:50
问题 How can we use github pages embedded in an iframe correctly? I've hosted a website in firebase and it is using a custom domain over https, for example, https://www.example.com . This website uses react and other things, but for one route (the landing page one) I would like to use a static page hosted on github, for example https://example.github.io/page . So, to achieve this I've created an iframe inside the route https://www.example.com/page . The problem is I've been receiving the following