What are the best healthy ways to stay alert through a night shift?

Get enough sleep. Get enough sleep during the day (7-8 hours). Sleep during they day and stay awake at night even on your days off. Drink small amounts of caffeinated beverages through the first half of the night.