Preheat and prep the pan: Heat the oven to 425°F (220°C). Line a large sheet pan with parchment paper or lightly oil it.
Season the sweet potatoes: In a bowl, toss the sweet potato cubes and red onion with 1 tablespoon olive oil, 1/2 teaspoon salt, 1/4 teaspoon pepper, smoked paprika, and cumin.
Spread in a single layer on the pan.
Start roasting the veggies: Roast the sweet potatoes for 15 minutes to give them a head start. They need a bit longer than the salmon.
Mix the salmon topping: In a small bowl, combine the remaining 1 tablespoon olive oil, minced garlic, chili powder (if using), lemon zest, half the lemon juice, remaining salt and pepper, and chopped herbs.
Season the salmon: Pat the salmon dry with paper towels. Brush or spoon the lemon-garlic mixture over the top of each fillet.
If your salmon has skin, leave it skin-side down for roasting.
Add salmon to the pan: Pull the sweet potatoes out, toss them, and scoot them to make room. Add salmon fillets to the pan. If using extra veggies like green beans or broccoli, toss them with a drizzle of oil and salt, then add to any open space.
Roast to perfection: Return the pan to the oven and roast for 10–12 minutes, or until the salmon flakes easily with a fork and reaches an internal temperature of about 125–130°F for medium (or up to 140°F if you prefer it more done).
The sweet potatoes should be tender and lightly caramelized.
Finish with brightness: Squeeze the remaining lemon juice over the salmon and vegetables. Taste and adjust salt and pepper. Add a sprinkle of fresh herbs.
Serve: Plate the salmon with a generous scoop of sweet potatoes and any extra veggies.
Add lemon wedges on the side for extra zing.