2Add sliced red onions to a saucepan with oil and cook until golden brown.
3Remove the fried onions and place them on a paper towel-lined baking sheet to drain.
4Add sliced garlic to the same saucepan and cook until golden brown.
5Remove fried garlic and place on a paper towel-lined baking sheet to drain.
6Add peanuts to the saucepan and cook until golden brown.
7Remove the peanuts and drain them on a paper towel-lined baking sheet.
8In the same saucepan, add a piece of ginger, a cinnamon stick, a bay leaf, and three star anise and simmer.
9In a bowl, mix together a tablespoon of sichuan peppercorns, a tablespoon of chilli flakes, a tablespoon of salt, a tablespoon of sugar, and two tablespoons of vinegar.
10Add the cooked oil from the saucepan to the spice mix.
11Stir well to combine.
12Add the fried garlic and the fried onions to the chilli oil mixture and mix well.