This is a great question - one that definitely should be addressed.
I've had migraines for a very long time, through the pregnancy of my 2 children, and I've stuck to acetaminophen during that time and slept A LOT, but this was 25 years ago. There are so many more medications on the market making it much more complicated as a discussion. Here is an article with some suggestions, first- and second-line treatments, a few studies mentioned, and treatment for migraines during breastfeeding (if you elect). Hope it helps.
https://www.neurologyadvisor.com/advisor-channels/headache-migraine-advisor/safe-treatments-for-migraine-in-pregnancy-lactation-menstruation/#:~:text=Preferred%20pharmacological%20treatments%20for%20migraine,during%20the%20second%20trimester%20only.
Take a moment to read it so as to discuss options with your treating physician. Best of wellness always and congrats on your pregnancy! ~ Rebecca (comm advc)