Dizziness while making dessert

Im 6 months pregnant. Earlier today as i was preparing food, i started getting dizzy/lightheaded. I laid down for like 30mins n was fine. It happened again just now as i was doing the same thing..whats wrong with me?? Is baby ok?? Im scared bc this never happens n its my first pregnancy..help please.