Preheat your oven to 375°F (190°C).
In a large skillet over medium heat, cook the bacon until crispy, then remove and drain on paper towels.
In the same skillet, add diced potatoes and cook until they are golden brown and tender, about 10-15 minutes.
Add diced onions and bell peppers (if using) to the skillet, cooking until they are soft and translucent, about 5 minutes.
In a bowl, whisk together the eggs, salt, and pepper, then fold in the shredded cheese and crumbled bacon.
Pour the egg mixture into the skillet over the sautéed vegetables and cook for a few minutes until the edges start to set.
Transfer the skillet to the preheated oven and bake until fully set, about 15-20 minutes.
Remove from the oven, let it cool slightly, and slice into wedges for serving.