Preheat the oven to 350 degrees F. In an ovenproof baking dish, make a layer of onions on the bottom. Drizzle with half the oil and the thyme, and season with salt and pepper. Place the fish over the onions and layer the tomatoes and zucchini. Pour in the stock and wine to fill the dis