gained weight

So I am 30 weeks pregnant. I gained more weight than i should. Before I was pregnant for at least 2-3 years I ate healthy for the most part I lost a bunch of weight and was looking good as ever! the same year I got pregnant is the year I felt the best about my body. ( I was insecure for years) so here I am & I feel like I fell so far away from my good eating habits. I wonder if I’ll ever go back. It feels almost as possible especially being pregnant my craving is always something SWEET! 😔😔 I’m feeling so insecure. I know after I have the baby I’m going to look sloppy. Any advice on how to snap back into my better ways?