Add cut onion, peppers, and sweet potatoes to a large mixing bowl with olive oil, salt and pepper and stir to coat. Spread over a large non-stick baking sheet or GREASE the baking sheet before spreading the mixture evenly over top.
Bake in the oven for 15 minutes, stirring once after about 10 minutes.
Using a spatula, spread the sweet potato mixture to create 8 holes for the eggs. Crack the eggs one at a time into these spaces before baking an additional 6-10 minutes, depending on how well done you like your eggs. I recommend 10 minutes for over hard eggs.
While the eggs are baking, Add 2 cups each of greens to 4 bowls. Remove the pan from the oven and divide the eggs and sweet potato mixture into the bowls. Top each with 2 Tbsp of pesto.