firebase-hosting

Adding custom domain (crazydomains): Unexpected TXT records found. Continuing to watch for changes

我的未来我决定 提交于 2019-12-06 07:27:23
I've added the TXT records according to firebase's instructions. Also had crazydomains support verify the settings, but I'm still getting the Unexpected TXT records found. Continuing to watch for changes. message at the Verify step. Anyone had experience doing this with crazydomains? I've read on another similar post targeted at NAMECHEAP, but I don't see how I can add the '@' to the Host field with crazydomains. Here is my settings on crazydomains. Google support staff (Neel) provided a solution that worked. Basically redoing the steps, but in a timely manner. On the Firebase console, delete

Firebase Hosting: cache busting scripts on deploy

邮差的信 提交于 2019-12-06 07:08:09
问题 I have a Polymer (single page app) application hosted on firebase. When I deploy a new version to firebase, I'll like firebase to reload the javascript source instead of using cached ones. Is it possible to do that via firebase.json? If so, how? Or do i have to manually add a cache busting url to my build output? Thanks 回答1: Adding Webpack or a similar tool to your build is probably the easiest way to go, as there's not currently a way to achieve the desired result with Firebase directly: How

example for caching cloud function for firebase requests and only re cache after a successful edit to the profile

给你一囗甜甜゛ 提交于 2019-12-06 06:11:12
In my app, Users profiles are open to the public and only updated by the profile owner. The profile URL is example.com/profile?user=@user.me And based on the docs https://firebase.google.com/docs/hosting/functions . I can cache the response JSON of the function, in this case, the public profile. Which will save me a lot of at cloud functions executions and Firebase database bandwidth And when the user updates his profile, I want to re cache the profile in the CDN. I think that can be done by making the user re-request his public profile, with Cache-Control: no-cache in the request header,

Firebase route security without AngularFire

我与影子孤独终老i 提交于 2019-12-06 04:50:43
问题 I'm creating a web application using Firebase as the backend for data storage, real-time updates, as well as for hosting. Moving most things client-side is pretty slick, but the issue of security is an important one to address. For access to data on Firebase, Firebase Security Rules takes care of most things. But, when using Firebase for hosting, I feel like there is a lack of security for accessing certain routes. Currently, on a page load, I can check to see whether or not a user is logged

How do I exclude a path (/images) from single page app rewrite?

拟墨画扇 提交于 2019-12-06 02:39:14
I have a react app and have the usual rewrite rule in firebase hosting: "rewrites": [ { "source": "**", "destination": "/index.html" } ] I also have a separate /images directory with images I don't want to be rewritten. How do I exclude the /images directory from the rewrite? I'm a bit late but I found this question while searching for a similar problem. Use this rewrites rule : "rewrites": [ { "source": "!/images/**", "destination": "/index.html" } ] The key is that "source" (as a lot of fields in firebase.json) use a glob pattern matching notation . Instead of redirecting everything on index

Firebase Hosting Flask Application

筅森魡賤 提交于 2019-12-05 22:42:10
I'm attempting to host a simple flask application on a hackathon project, but I'm running into an issue where it can not identify the routes. For example, say my flask route is: @app.route('/helloWorld', methods=['POST']) def index(): inputted_name = request.form['nm'] return 'Hello World ' + inputted_name and my index.html is <html> <body> <form action = "{{ url_for('helloWorld') }}" method = "post"> <p>Enter Name:</p> <p><input type = "text" name = "nm" /></p> <p><input type = "submit" value = "submit" /></p> </form> </body> </html> and my firebase.json { "hosting": { "public": "folder

Firebase: multiple Apps connected to single firestore

两盒软妹~` 提交于 2019-12-05 19:24:32
This is intentionally a very broad question. Sorry about that. I'm experimenting with firebase for the first time. I would like to build a little e-commerce webapp using firebase, React and Next. I would like to split the App in two different apps: one admin app (used to create products and do other admin stuff) and the actual shop app. The Apps should be hosted on two different domains but they should talk to the same cloud firestore. What would be a good setup to implement this architecture? Currently I am thinking about creating separate firebase projects for the admin and the shop app so I

How to include subdirectories in firebase hosting

随声附和 提交于 2019-12-05 18:24:12
My site consists of main page and then subages separated inside folders. How can I include subpages in my page host (firebase hosting) mckoss (Frank's comment was really an answer) Firebase deploys everything under the directory that you indicate. So if you have your main page (index.html) in the current and directory and the other pages in subdirectories under that, they should all be deployed if you configure public to point to the current directory. Deployment Configuration Update Node (npm) and Firebase CLI tools We had a problem related to this... After some time of no relation with

How to make changes stick in fireapp that will be hosted using firebase hosting?

谁都会走 提交于 2019-12-05 18:01:08
I'm using firebase hosting to host an angularfire app. The app deployed fine using the Quickstart instructions in the docs. There were some small problems in my app, things I needed to change. I made these changes, ran through the steps again, but the live app (via my firebase url) doesn't reflect this. I've tried deleting the app, deleting the firebase.json file, redoing the process several times. But it continues to reflect the older changes. If this were a git push deployment, it seems almost like I haven't committed the new changes. I read through the docs, --help, commands, etc. but can't

Firebase hosting with only ONE A record

大兔子大兔子 提交于 2019-12-05 14:31:37
问题 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