firebase-hosting

Does Firebase blaze plan have the spark plans quota?

青春壹個敷衍的年華 提交于 2019-12-10 15:48:51
问题 Does Firebase Blaze plan have the spark plans free quota? I want to use Firebase with google cloud platform, but would like to still have the hosting free limits. I don't care about the other services because I don't use them. 回答1: Update (2018-03-13): projects on the Blaze plan now get the same free quota that projects on the Spark plan get before you'll be billed for usage. See the blog post announcing this change Original answer below the fold. Whether there is a free tier on the metered

Unable to do Firebase deploy - Error: Invalid Firebase specified

余生颓废 提交于 2019-12-10 12:53:57
问题 After accomplishing all the necessary steps on firebase.com/docs and upgrading my app to newer version I still can't run the deploy it using firebase-tools . $ firebase deploy MY_APP_NAME Gives following stack: /usr/local/lib/node_modules/firebase-tools/node_modules/configstore/index.js:53 throw err; ^ Error: EACCES: permission denied, open '/Users/myusername/.config/configstore/update-notifier-firebase-tools.json' You don't have access to this file. at Error (native) at Object.fs.openSync

Cache-Control header in firebase.json file not working

南笙酒味 提交于 2019-12-10 12:39:28
问题 The Cache-Control header setting in my firebase.json file does not seem to be working. I have set the max-age value, for all files, to 31536000 (1 year). My firebase.json file is- { "hosting": { "public": "public" }, "ignore": [ "firebase.json", "**/.*", "**/node_modules/**" ], "headers": [{ "source": "**", "headers": [{ "key": "Cache-Control", "value": "max-age=31536000" }] }] } The file seems to abide by the firebase documentation. But the max-age value, for all files, is still set to the

Firebase: multiple Apps connected to single firestore

心不动则不痛 提交于 2019-12-10 10:36:38
问题 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

Compress with gzip on firebase

随声附和 提交于 2019-12-10 10:16:09
问题 I'm trying to compress my .css and .js on my firebase hosted web to increase loading speeds, however I've been unable to use the firebase.json config file to correctly setup a gzip compression for my assets. The curl -v command shows that no compression is performed when serving the files from the server. Also checked in the network section of Firefox Developer edition. The furthest I've been able to go has been a load error on my browser because of my .json configuration. "source": "**/*.@

Rate Limiting on Firebase Hosting

自闭症网瘾萝莉.ら 提交于 2019-12-09 13:11:22
问题 I've been searching for ways to rate limit requests by IP, but was not able to find any resources. Basically what I'm looking is a way to implement firewall logic. I know that I can limit authenticated user requests with database rules, but how do I go about limiting page hits? For example I only want to allow 150 requests per minute for each IP. Is there any way to do this? Otherwise, wouldn't it be easy to attack small businesses who are on Blaze plan? 回答1: Firebaser here. There is

Upload single file to firebase hosting via CLI or other without deleting existing ones?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-09 08:52:54
问题 Question: How to upload a single file to firebase without deleting existing files? Details: Intent: upload single file without deleting existing files on server Usage: have separate directories on local machine each uploading to a specific folder on server What I've tried: overriding the public dir with firebase deploy -p file.txt , this results in setting root public dir to use that dir. 回答1: Disclosure: I work at Firebase Firebase hosting's command line tools currently requires that you

When deploying with Firebase hosting, I get hosting.rewrites[0] is not exactly one from [subschema 0],[subschema 1]

一世执手 提交于 2019-12-08 15:00:07
问题 Deploying an application to Firebase hosting, I get the following error: HTTP Error: 400, hosting.rewrites[0] is not exactly one from [subschema 0],[subschema 1] This occurs with a simple configuration like: { "hosting": { "public": "public", "ignore": [ "firebase.json", "**/.*", "**/node_modules/**" ], "rewrites": [ { "source": "/*/*", "destination": "index.html" } ] } } This configuration does work when serving locally. 回答1: Apparently, the error indicates that I should put a '/' in front

Add custom domain to be used with firebase real time database (i.e. verify email links)

半城伤御伤魂 提交于 2019-12-08 10:15:37
问题 I am looking for an option to change domain name that is being used for real time database features like email verification / password reset. At the moment emails that are sent to users use default project-name.firebaseapp.com domain names. It would be good to use custom domains for this. I believe firebase hosting allows to achieve this, yet there is nothing about domain change for real time database. 回答1: Email verification and password reset are part of the Firebase Authentication, so are

Workbox pre-cached audio with range requests router fails to play in Chrome when served from Firebase

此生再无相见时 提交于 2019-12-08 05:00:28
问题 Background I have created a PWA test project to find out how to get audio caching working with Workbox, including scrub/seek using the range requests plugin. I want the app to precache all audio and for this audio to be playable offline, including scrub/seek. Pre-caching the audio can be done in one of two ways: Using Workbox injectManifest. By manually adding audio files to a cache using cache.add(URL) But audio files cached with the first method (injectManifest) will not scrub/seek because