Preheat your oven to 400 degrees F. Grease a 2.5 - 3 quart casserole dish with butter and set aside. First, scrub the potatoes (peeling is optional!) and thinly slice them into 1/8-inch thick slices. You could also use a food processor or mandoline for quick work of slicing.
2 1/2 pounds Gold Yukon Potatoes, 1/2 small onion
Slice half of a small onion as thin as possible. Add the sliced potatoes and onions to a large bowl and set aside.
In a medium bowl, whisk together the milk, heavy cream, and sourdough discard until smooth. Pour the mixture into a medium saucepan and heat to medium heat. Stir occasionally. Continue to cook until the sauce thickens and begins to bubble. Remove from the heat.
2 cups whole milk, 1/2 cup heavy cream, 1/4 cup sourdough discard
To the white sauce, add the grated cheddar cheese, half of the grated Gruyere cheese, garlic powder, and salt and pepper to taste. Stir until the cheese is fully melted and smooth.
1 cup cheddar cheese, 1 cup Gruyere cheese, 1/2 teaspoon garlic powder, salt and pepper
Pour the cheese sauce over the sliced potatoes and onion. With a wooden spoon, stir until the vegetables are fully coated in the cheese sauce.
Pour the potato mixture into the prepared baking dish and spread evenly in a single layer. Top the potatoes with the remaining grated Gruyere and grated Parmesan cheese, then cover the baking dish with aluminum foil and place in the preheated oven to bake for 60 minutes.
1/4 cup Parmesan cheese
Next, remove the foil and continue to cook for an additional 15-30 minutes or until the topping is golden brown and the potatoes can be easily pierced with a fork.
Allow the Sourdough Au Gratin to rest for 15 minutes before serving. Garnish with chopped parsley, chives, or thyme leaves, and serve warm. Enjoy!