Step 1: Prep Bread
Preheat oven to 375°F.
Cut bread into 1-inch cubes. Spread on a baking sheet and toast in oven for 8–10 minutes, until dry but not browned. Let cool.
Grease a 9×13” baking dish with butter.
Step 2: Caramelize Onion
In a skillet, melt 2 tbsp butter over medium-low heat.
Add onions and a pinch of salt. Cook 15–20 minutes, stirring occasionally, until golden and sweet.
Stir in garlic and thyme (and optional herbs), cook 1 minute more. Set aside.
Step 3: Make Custard
In a large bowl, whisk eggs, milk, cream, salt, pepper, nutmeg, and mustard (if using).
Step 4: Assemble
In a large bowl, combine toasted bread, caramelized onion mixture, and cheese(s).
Pour custard over and gently toss until well combined. Let sit 10 minutes to absorb.
Transfer to prepared baking dish. Press lightly to flatten. Top with extra cheese if desired.
Step 5: Bake
Bake uncovered for 40–50 minutes, until puffed and golden, with a slight jiggle in the center.
Let rest 10 minutes before serving.