No sleep/ won’t be put down. Help!

How do you cope and make it through the day with no sleep? My boy is usually a good sleeper but we are dealing with stomach issues and he is now waking up much earlier. I know I am lucky because I am getting about 4hrs and some of you are getting 1-2. My mom has also come over to help and let me have a short nap or just hold him since he wants to be walked and held all day long. But I feel really bad she keeps coming over. She volunteers and loves it but I know she has other things to do. What are some ways you get through the long days on your own? I am so worried I will be too tired and fall asleep or not be alert enough to take care of him the best I can. I am not a huge coffee person. I will take any advice.