Then there are two options: the first is to fry the vegetables, the second is to add the raw ones to the half-cooked potatoes. Today I decided to pre-fry in vegetable oil.
First fry the onion until golden brown. I added 1/2 tsp sugar for caramelization, but this is for an amateur.