Pre-heat oven to 400ºF.: You should feel the warmth building in the kitchen as the oven climbs to temperature, a dry, even heat that will promote quick browning on the vegetables. This temperature encourages caramelization without overcooking the fish, helping the outer edges of the green beans and zucchini to develop light golden spots. A common mistake is putting the pan into an oven that is not fully preheated, which leads to uneven cooking; always wait until the oven signals it has reached temperature.
On a rimmed baking sheet combine green beans, onion, 6 garlic cloves, 2 teaspoons avocado oil, 1 teaspoon fine sea salt and 1/2 teaspoon ground black pepper.: As you toss these together you should hear a faint rustle from the beans and smell the first warm garlic aroma. The oil helps the vegetables develop a glossy sheen and direct contact with the pan creates those tiny, flavorful brown edges. Work quickly so the garlic does not sit exposed and brown before roasting; if garlic sits in direct heat too long it can char and taste bitter.
Bake in oven for 10 minutes.: After 10 minutes you will notice the onions soften and the green beans taking on tiny browned tips, releasing a sweet, roasted scent. This brief initial roast gives the vegetables a head start so they are nearly tender when the fish joins them. A common oversight is underestimating pan crowding which can steam instead of roast; spread the vegetables in an even layer to encourage browning.
Meanwhile make lemon herb sauce: In a blender combine 2 cloves garlic, parsley, cilantro, dill, scallion, lemon zest, lemon juice, 1/4 teaspoon salt and 1/4 teaspoon black pepper and blend until combined. Set aside.: In a blender combine 2 cloves garlic, parsley, cilantro, dill, scallion, lemon zest, lemon juice, 1/4 teaspoon salt and 1/4 teaspoon black pepper and blend until combined. Set aside. : As you blend, the aroma will shift from roasted notes to fresh, green citrus, and the texture should be smooth but still slightly textured from the herbs. This sauce adds lift that contrasts the warm roasted vegetables and the tender cod . One common misstep is overblending to the point of heating the herbs; brief pulses keep the sauce cool and vibrant.
Remove sheet pan from oven and add sliced zucchini with green bean mixture and combine. Clear space in the middle of the sheet pan to add the fish. Place fish on sheet pan and lightly drizzle with remaining 2 teaspoons oil, 3/4 teaspoon salt and 1/2 teaspoon black pepper. Return to oven and continue to bake for 15-17 minutes, or until the fish is just cooked through. (See note): You will feel a burst of oven steam as you open the door and a deeper roasted scent. Adding zucchini at this stage ensures it finishes at the same time as the fish, staying tender but intact. Clearing a space for the fish allows even heat circulation around each piece, which prevents pockets of undercooked fish. Avoid overcrowding the pan, or the pieces will steam instead of roast.
Drizzle cooked fish and vegetables with lemon herb sauce and garnish with lemon slices!: The finishing bake produces audible soft sizzles as the fish cooks and the edges of the vegetables darken to amber. The fish is done when it flakes with gentle pressure and feels tender; overbaking yields dry, stringy texture. Use a thermometer if unsure; the center should read about 145ºF. A typical error is leaving the fish in too long because the vegetables look done; remove the pan as soon as the fish reaches the right doneness.
Drizzle cooked fish and vegetables with lemon herb sauce and garnish with lemon slices!: When you add the sauce you will see the plate brighten instantly, glossy green streaks across warm roasted surfaces, and the citrus aroma will pop. The sauce brings a cool contrast to the warm pan, making each bite layered in temperature and flavor. A mistake to avoid is drizzling too early, which soggifies roasted edges; add the sauce just before serving for best texture.