Warm the pan: Set a large skillet over medium heat. Add olive oil and let it shimmer.
Soften aromatics: Add the onion with a pinch of salt. Sauté 3–4 minutes until soft and translucent.
Stir in the garlic and cook 30 seconds until fragrant.
Add sun-dried tomatoes and spices: Stir in the sliced sun-dried tomatoes, Italian seasoning, and red pepper flakes. Cook 1 minute to bloom the spices.
Pour in broth and cream: Add the broth and cream. Stir and bring to a gentle simmer.
Reduce heat to medium-low so it doesn’t boil hard.
Add gnocchi: Stir in the gnocchi. Simmer 4–5 minutes, stirring occasionally, until the gnocchi float and the sauce begins to thicken. If the sauce gets too thick, splash in more broth.
Stir in spinach and cheese: Fold in the spinach until wilted, about 1 minute.
Sprinkle in parmesan and stir until smooth and silky.
Finish and season: Add lemon juice if using. Taste and season with salt and black pepper. The parmesan is salty, so start light and adjust.
Serve: Spoon into bowls and top with more parmesan and fresh basil.
Serve hot.