While the onions are baking, bring a large pot of salted water to a boil. If you prefer bite-sized pieces, chop the green beans in half or into thirds. Add the whole or cut green beans to the boiling water and cook until they are bright green, about 3 minutes. You want them to be slightly firm because they will continue to cook in the oven. 1 pound green beans
Using a slotted spoon, transfer the green beans to a large bowl of ice water to stop the cooking process. Once cooled, drain and pat dry with a clean kitchen towel or paper towels. Set aside.
Melt the butter in a medium skillet over medium heat. Add the diced onions and mushrooms and sauté, stirring occasionally, until the onions are soft and the mushrooms have released most of their moisture. Add the minced garlic and cook for another 30–60 seconds, just until fragrant.
8 oz mushrooms slices or diced, 28 grams butter, 3 cloves garlic, minced, 60 grams onions, diced
In a liquid measuring cup, whisk together the chicken stock and sourdough discard until smooth and no lumps remain. Slowly pour the discard mixture into the skillet, stirring continuously. Allow the sauce to gently simmer, stirring frequently, until it begins to bubble and thicken.
160 grams chicken stock, 60 grams sourdough discard
Reduce the heat to medium-low and slowly pour in the half-and-half, stirring until fully incorporated.
300 grams half and half
Stir in the grated Parmesan cheese and seasonings until the cheese has melted and everything is well combined. Remove the skillet from the heat.
30 grams Parmesan, freshly grated, 6 grams salt
Reduce the oven temperature to 400°F. Place the green beans in a 2-3 qt. baking dish and pour the mushroom cream sauce over the top. Gently mix until all the green beans are evenly coated in the sauce.
Place the crispy onions evenly over the top of the green bean mixture, then bake for 25-30 minutes or until the sauce is hot and bubbly around the edges and the onion topping is golden and crispy.
Remove the casserole from the oven and allow it to cool for a few minutes before serving. Enjoy!