Gential herpes while pregnant

I unfortunately just found out I have gential herpes and I'm 5 weeks pregnant. Does anyone have any experience with this?? I'm just so defeated right now and worried I might give it to my child. I was prescribed some cream to use but isnt there some kind of pill I'm supposed to be taking to prevent future outbreaks ? Any advice would be greatly appreciated as well.