Caramelize onions: Melt butter with oil in a heavy pot over medium heat. Add onions, and cook covered for 15 minutes.
2 tbsp olive oil, 2 tbsp unsalted butter, 2 lb yellow onions
Uncover the pot and continue cooking the onions for 45 minutes until they are deeply golden, sweet, and soft. Stir occasionally. This slow process releases the natural sweetness of onions, creating a deeply flavorful base for the soup.
If onions begin to stick or seem prone to burning, splash in water, and scrape up the fond (the flavorful browned bits).
Thicken Slightly: Sprinkle flour in, add salt, black pepper, and minced garlic, and stir for a minute or two to slightly thicken the base. Stir constantly.
1 tbsp all-purpose flour, ½ tsp salt, ¼ tsp black pepper, 2 minced garlic
Deglaze: Pour in the rice cooking wine (or sherry/dry white wine), and stir until most of the liquid has reduced and the onions appear jammy.
½ cup rice cooking wine
Add Broth and Aromatics, Then Simmer: Pour in beef broth, add the aromatics (the thyme and a bay leaf).
4 cups beef broth, 4 sprigs fresh thyme, 1 bay leaf
Bring to a simmer, then cook for an additional 5 minutes to allow the flavors to meld.
Turn off the heat, let it rest covered until making the baguette.