01 - Bring a large pot of salted water to a boil for cooking the gnocchi.
02 - While the water heats, add olive oil and butter to a large skillet over medium heat. Sauté the chopped onion until translucent, about 2 to 3 minutes.
03 - Add minced garlic and chili flakes to the skillet; cook for 1 minute until fragrant.
04 - Stir in the chopped sun-dried tomatoes and sauté for an additional 1 to 2 minutes.
05 - Pour in the heavy cream and bring to a gentle simmer. Mix in the Parmesan cheese and allow it to melt, then season with salt and freshly ground black pepper to taste.
06 - Add the baby spinach to the skillet and cook until just wilted, about 1 minute.
07 - Drop the potato gnocchi into the boiling water. Cook as directed on the package, typically until the gnocchi float to the surface, about 2 to 3 minutes. Drain well.
08 - Transfer the drained gnocchi directly into the skillet with the sauce. Stir to coat thoroughly, adding a splash of reserved pasta water if a thinner consistency is desired.
09 - Remove the skillet from heat. Gently fold in the fresh basil. Serve immediately, garnished with extra Parmesan cheese as desired.