Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying rules with bolt adds extra "rules" wrapper

With a rules.bolt file that contains

path / {
  read() = true;
  write() = true;
}

and a firebase.json that contains

{...
  "rules": "rules.bolt"
}

running firebase deploy:rules results in the following rules:

{"rules":{"rules":{".read":"true",".write":"true"}}}

while it should be

{"rules":{".read":"true",".write":"true"}}

A current workaround is to run firebase-bolt locally and deploy the resulting json file.

like image 569
Christopher Best Avatar asked Jul 08 '26 13:07

Christopher Best


1 Answers

Looks like this is fixed after version 2.1.0 of firebase-tools (not yet released as its own version).

https://github.com/firebase/firebase-tools/pull/101

like image 95
mckoss Avatar answered Jul 13 '26 18:07

mckoss



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!