01 - Bring a large pot of salted water to a boil for cooking the gnocchi.
02 - While the water heats, warm olive oil and butter in a large skillet over medium heat. Sauté the onion until translucent, about 2 to 3 minutes.
03 - Add garlic and, if desired, chili flakes. Cook for 1 minute until aromatic. Stir in sun-dried tomatoes and sauté for another 1 to 2 minutes.
04 - Pour in heavy cream and bring the mixture to a gentle simmer. Stir in Parmesan cheese and allow to melt fully. Season with salt and black pepper to taste.
05 - Fold in the baby spinach and cook just until wilted, about 1 minute.
06 - Drop the gnocchi into the boiling water and cook according to package instructions, typically 2 to 3 minutes, until gnocchi float. Drain thoroughly.
07 - Toss the drained gnocchi directly into the cream sauce. Stir gently to coat, adding a splash of reserved pasta water if needed for consistency.
08 - Remove skillet from heat. Add fresh basil, toss lightly, and serve immediately with extra Parmesan as desired.