01 - Preheat the oven to 400°F.
02 - Pat cod fillets dry with paper towels and season both sides with salt and freshly ground black pepper.
03 - Place cod fillets in a lightly oiled baking dish and drizzle with 1 tablespoon of olive oil.
04 - Heat 2 tablespoons olive oil in a large skillet over medium heat and sauté the diced shallot until translucent, about 2 minutes.
05 - Add chopped garlic to the skillet and cook, stirring, for 30 seconds to release aroma without burning.
06 - Add halved cherry tomatoes and cook for 3 to 4 minutes until they soften and release their juices.
07 - Stir in optional capers, white wine or fish stock, lemon zest, and lemon juice. Simmer for 3 to 4 minutes until the liquid slightly reduces.
08 - Remove from heat and fold in chopped basil and parsley.
09 - Spoon the cherry tomato sauce evenly over the cod fillets in the baking dish.
10 - Bake in the preheated oven for 15 to 18 minutes or until the fish flakes easily with a fork.
11 - Serve hot, optionally garnished with additional fresh herbs.