Take your pastry out of the fridge and leave to come up to room temperature.
In a medium sized saucepan on a medium heat add a glug of olive oil and allow to heat up.
Add the finely chopped red onions and 1tbsp of vinegar and allow to gently soften for around 4 minutes, make sure you don't burn the onions.