Heat the butter in a large skillet over medium-high heat until melted and slightly browned.
Add the onion and salt and cook until soft, about 8 minutes.
Add in the garlic, zucchini, corn kernels and oregano. If using red pepper flakes, add it here. Cook for 8 minutes until softened. Taste, adjust for seasoning as desired.
While the zucchini and corn are cooking, add the gnocchi to the boiling water and cook until gnocchi start to float to the top. Drain.
Add the gnocchi to the corn and zucchini skillet and toss together until combined. Remove from heat, then stir in the chopped basil and parmesan cheese. Serve!
Notes
I say this recipe serves 4, but sometimes I make this just for my husband and me. You can easily double this recipe as well, just make sure you use a large enough skillet, as the secret to this sauce is creating the lightly browned butter with the silky fresh corn and jammy zucchini. You can sub in cooked tortellini or penne for the gnocchi.