Preheat the oven to 425F. Line a large sheet pan or baking sheet with parchment paper.
Whisk together the 3 tbsp olive oil, pressed garlic, garlic powder, onion powder, dried thyme, dried oregano, salt and chili flakes.
Add the gnocchi with the baby tomatoes, fresh corn, chopped zucchini, bell pepper and sliced onion to the parchment lined sheet pan. Toss to combine and make sure everything is well coated by giving it a good stir on the sheet pan. Optional: add the drained and rinsed beans as well and toss to combine.
Bake for 20-25 minutes or until the gnocchi is tender and the tomatoes are just starting to burst.
Top with dollops of pesto, freshly grated parmesan cheese and fresh basil and then serve immediately.