The basic models aren’t too bad… but if you want half-decent specs you are probably going to need to add at least 50% to your budget!
At least with the Mac Mini you can swap out the HD and upgrade memory (at least afaik - is that still possible with M1 minis?)
MBA’s are probably more than enough for dev stuff mind - I loved my 11" MBA!