In a large pot, melt butter and olive oil over medium-low heat.
Add onions, salt, and sugar. Cook slowly, stirring frequently, for 35–45 minutes until deep golden brown. Don’t rush this step — the flavour builds here.
Add garlic and flour
Add garlic and stir for 1 minute.
Sprinkle over flour, stir well to coat, and cook another 2–3 minutes.
Pour in wine and scrape up the fond from the bottom. Simmer 2 minutes.
Add the veg stock, thyme, bay leaf, and optional miso. Simmer gently for 30–40 minutes.
Season to taste and remove bay leaf and thyme sprigs before serving.