Gestational diabetes 26 weeks!!

I’m 26 weeks and just got diagnosed with GD and I read it can cause stillbirth and now I’m freaking out what do I do to control my gd give me every tip you got please (also does it mean I’m no longer aloud to have sugar?)