Breastfeeding help

We are exclusively nursing and my baby started sleeping longer stretches but my boobs can’t handle it.

I woke up after 4 hours of feeding him with my PJs soaking yet and my boobs rock hard and in so much pain. I literally had to wake my baby up to help me out, and it took me 30 mins to wake him. He could have definitely gone longer, which my pediatrician said is totally fine.

My question is, how do I get my boobs to go longer? Should I let baby sleep and go pump instead?