*tmi* constipation during pregnancy

I’m 27 weeks and I’ve been getting so constipated. It’s at the point where I go like once a week or so and when I do my stomach hurts so bad that I feel like I’m going to throw up. Is there anything I can do 😭