Preheat your oven to 400°F (200°C).
Cook the bacon in a skillet over medium heat until crispy, then remove and crumble.
Sauté the diced onion in the bacon fat until softened, about 5 minutes.
In a bowl, whisk together the eggs, milk, salt, and pepper.
Fold in the cooked potatoes, crumbled bacon, and cheese.
Pour the mixture back into the skillet and cook over low heat for about 5-7 minutes.
Transfer the skillet to the preheated oven and bake for 15-20 minutes.
Remove from the oven and let sit for a few minutes before slicing.
Garnish with fresh herbs and serve warm or at room temperature.