In a large pot of salted boiling water, cook the gnocchi according to package instructions until they float to the surface. This usually takes about 2-3 minutes. Once done, drain and set aside.
In a large skillet over medium heat, add the olive oil, then sauté the minced garlic for about 1 minute, until fragrant but not burnt.
Pour in the heavy cream and vegetable broth, stirring to combine. Allow the mixture to simmer for about 5 minutes, letting it thicken slightly.
Stir in the grated parmesan cheese, mixing until melted and smooth. If using, add the crushed red pepper flakes for a little heat.
Gently fold in the cooked gnocchi and the baby spinach. Cook for an additional 3-4 minutes until the spinach wilts and the gnocchi are heated through.
Season with salt and pepper to taste, adjusting based on your preference.
Remove from heat and garnish with fresh basil leaves before serving.
Notes
Add more or less crushed red pepper flakes based on your heat preference.