Cook the gnocchi in salt water. Meanwhile, dice the onion and sauté in a little oil together with the diced bacon. Drain and add the gnocchi, season with salt and pepper.
Roughly dice the courgettes and sprinkle with salt. Chop the leeks and peppers finely and fry in oil. Wash the now slightly dehydrated courgettes a little and add them. Season to taste with salt, pepper, garlic and basil pesto.
In a greased casserole dish first spread the bacon gnocchi, then spread the vegetable mixture over them. Sprinkle with grated parmesan and bake in the oven at 200°C for about 20 minutes and serve with salad.