Really depends if it’s food poisoning or a stomach bug (e.g. norovirus). If it’s the latter, don’t even bother eating anything until it passes, which normally only takes 24 to 48 hours for the worst of it. Try and stay hydrated by having tiny sips of water. Not too much at once or it’ll just come back up!
Hope you’re feeling better soon, rest up!