I use a MacBook Air 15" has my full stack main development machine. It is just light and portable on the go. At home I just plug it into a docking station with 10 GigE and output to a 48" OLED monitor - a beautiful setup.
Not the OP, but I use my Macbook Pro M4 with a 5-year old Dell TB19 Thunderbolt dock (not the usb-c one!). I have 2x 1080p screens aged 10+years connected to the dock, and I use the Macbook as 3rd display and the keyboard of the laptop as my daily driver. I've used the very same setup with my 2019 MBP so I assume the M4 Air can handle it too.