Start by heating olive oil in a large skillet over medium heat. Add the halved baby potatoes and cook until they are golden and tender. Stir occasionally to ensure even cooking and avoid burning. Season lightly with salt and pepper as they cook.
In the same pan, add butter and minced garlic, letting it cook until fragrant. Pour in the chicken broth and heavy cream, stirring gently. Add chopped rosemary and let the sauce simmer until slightly thickened and aromatic.
Place the cod fillets into the skillet or transfer everything to a baking dish. Spoon the creamy sauce over the fish to coat it well. Make sure the cod sits nestled among the potatoes for even cooking.
Transfer the dish to a preheated oven and bake until the cod is opaque and flakes easily. The sauce will thicken further, and the flavors will blend beautifully. Keep an eye on the fish to avoid overcooking.
Remove from the oven and let it rest briefly before serving. Add a splash of lemon juice if desired for freshness. Garnish with extra rosemary or herbs for a beautiful presentation.