Preheat the oven to 450 degrees
Add the peeled and diced sweet potatoes to a glass casserole dish
Sprinkle the sweet potatoes with garlic powder, onion powder, thyme, pepper, salt, and paprika
Drizzle on enough olive oil to coat, up to ⅓ cup
Toss to combine the sweet potatoes with the oil and spices
Roast the sweet potatoes at 450 degrees for 55 - 65 minutes, stirring 3 - 4 times to avoid burning, until crispy on the edges
Once sweet potatoes have about 15 minutes left to cook, add the minced garlic and diced onion to a skillet with 1 teaspoon of olive oil
Cook the garlic and onion for 12 - 15 minutes on medium heat, stirring often, until soft and caramelized
Once the sweet potatoes have finished cooking, remove them from oven and stir in the garlic and onion mixture before serving