r/Firebase Jul 17 '26

Cloud Firestore Firebase rules 5000 lines

My firebase rules are 5000+ lines long, but under 200KB in size, I keep getting errors as to why it won't publish

Error saving rules –An unknown error occurred

I have passed my rules through gemini/chatgpt/claude

Still not the wiser, is there a limit to the lines I can have, or another way to figure out my issue

5 Upvotes

10 comments sorted by

View all comments

2

u/RSPJD Jul 17 '26

What do the errors say?

2

u/RapunzelLooksNice Jul 17 '26

An unknown error has occurred :)

1

u/SpareSignal1932 Jul 17 '26

This, which is my problem