Preheat the oven to 180°C / 350°F.
Cut pumpkin into small cubes. Toss with 1/2 tbsp olive oil, salt and pepper. Transfer to a baking tray and roast for 15 minutes or until golden and tender.
While the pumpkin is roasting, prepare the onion. Small dice onion. Heat up 1/2 tbsp olive oil in a nonstick skillet over medium heat. Cook onion until caramelized, stirring constantly, about 12 minutes.
When onion is caramelized, add baby spinach to the skillet and cook until wilted, about 30 seconds. Remove from heat and season to taste with salt and pepper.
Whisk eggs and milk in a large bowl until combined.
Transfer roasted pumpkin, onion, spinach and cheese to a baking dish. Pour egg mixture over the vegetables.
Transfer to oven and bake for 10-15 minutes or until set and golden.
Remove from oven and let cool slightly before cutting. Enjoy!