Year long migraine patient here. What I’ve found helps most is enough sleep and no alcohol or chocolate.
As for dietary measures, a bit of magnesium and B’s, but also fermented foods. Umeboshi paste for instance, of sourkraut can really help! And eating raw ginger whenever I feel something coming on.
Also found avulux glasses to be somewhat working, and separate from migraines very good for screen watching!