Running firebase start:emulator doesn't seem to support bolt file anymore.
firebase-tools v8.15.0 on Mac (it was working with 8.6.0)
firebase.json file:json
{
"database": {
"rules": "./packages/app-database/rules/realtime.bolt"
}
}
firebase emulators:start --only database --debugIt crashes with:
[2020-11-05T14:34:23.171Z] <<< HTTP RESPONSE 400 {"content-length":"38","content-type":"application/json; charset=utf-8","access-control-allow-origin":"*","cache-control":"no-cache","x-firebase-project-id":"projectId","x-firebase-project-number":"","x-firebase-uuid":""}
[2020-11-05T14:34:23.171Z] <<< HTTP RESPONSE BODY {
"error" : "5:1: Parse error.\n"
Firebase should parse the bolt file before updating the rule in the emulator.
It crashes.
This issue does not seem to follow the issue template. Make sure you provide all the required information.
@SamyPesse thanks for reporting this! You're right, we had not considered this situation properly. We'll need to make the rules loader compile bolt rules.
Most helpful comment
@SamyPesse thanks for reporting this! You're right, we had not considered this situation properly. We'll need to make the rules loader compile bolt rules.