Place a small saucepan or skillet on a medium low heat on your stove. Then add oil and once the oil is warmed, add minced garlic and shallots. Cook the garlic and shallots until they turn brown at a medium-low temperature or you may need to turn it to low if the garlic and shallots start to burn. This may take up to 30 minutes. You are just aiming for them to turn golden brown. The oil should bubble gently and you'll want to stir from time to time so that these aromatics don't burn.
Once the garlic and shallots have turned golden brown, add the chili flakes, fish sauce, and palm sugar. Stir well to combine and then sauté for a minute.
If there is not enough oil to your liking, or not enough chili flakes, you can adjust by adding some more. Allow the chili oil to cool, and then place into an airtight container (glass jar).
