Start by preheating your oven to 375°F (190°C). Lightly grease your baking dish with olive oil or cooking spray to prevent sticking.
Sauté the Aromatics and Spinach
In a large skillet over medium heat, warm the olive oil. Add the diced onion and green onions, cooking for about 5 minutes until soft and fragrant. Stir in the minced garlic and cook for another 30 seconds.
Add the chopped spinach to the pan. If using fresh, cook until wilted and any liquid has evaporated—about 5–7 minutes. For frozen spinach, make sure it’s already thawed and squeeze out as much water as possible before adding it to the pan.
Stir in the parsley, dill, and a pinch of salt and pepper. Let the mixture cool slightly.
Mix the Egg Base
In a medium bowl, whisk together the eggs, milk (or half-and-half), and a pinch of nutmeg. Fold in the crumbled feta and ricotta. Add the cooled spinach mixture and combine until everything is evenly distributed.
Assemble and Bake
Pour the mixture into your prepared baking dish, spreading it out evenly. If you’re adding parmesan or sun-dried tomatoes, sprinkle them over the top.
Bake uncovered for 30–35 minutes, or until the center is set and the top is lightly golden. Let it cool for 5–10 minutes before slicing—it helps hold the shape and tastes even better warm rather than piping hot.