Bake on the center rack of the preheated oven for 20-30 minutes, or until the sweet potatoes are golden brown and reach your desired level of doneness.
Heat the avocado oil in a large skillet over medium-high heat. Add the chopped onion and sauté, stirring occasionally, until the onion begins to soften.