01 - Bring a large pot of salted water to a boil for cooking the gnocchi.
02 - While the water heats, in a large skillet over medium heat, combine olive oil and butter. Sauté the chopped onion until translucent, approximately 2–3 minutes.
03 - Incorporate minced garlic and chili flakes, cooking for 1 minute until aromatic.
04 - Add chopped sun-dried tomatoes to the skillet and sauté for 1–2 minutes.
05 - Pour in the heavy cream, bringing it to a gentle simmer. Gradually stir in Parmesan cheese and let it melt fully. Season the sauce with salt and freshly ground black pepper to taste.
06 - Stir baby spinach into the mixture, cooking until wilted, about 1 minute.
07 - Once the water is boiling, add the gnocchi and cook according to package instructions, usually 2–3 minutes until they float to the surface. Drain thoroughly.
08 - Transfer the drained gnocchi directly into the skillet with the sauce. Toss to coat evenly, adding a splash of reserved pasta water if a looser sauce is desired.
09 - Remove the skillet from heat. Gently fold in fresh basil and serve promptly, topping with additional Parmesan cheese as desired.