Purées making baby constipated?

I’ve been giving my son a small amount of purée before bed and I’ve noticed the last few nights he’s been waking up and straining to poop. Then he’ll start crying bc nothing comes out. He’s never done this before starting solids. What should I do?