Preheat oven to 375. In a sauté pan over medium heat add butter until melted. Add onion, garlic, herbs, apples, maple syrup, chicken broth, 1/2 teaspoon salt, and 1/2 teaspoon pepper. Cook until translucent and liquid is reduced. Remove from heat and let cool slightly.
In a bowl combine heavy cream, egg, and spices. Whisk until well combined. Set aside.
In a buttered 8x10 oven safe dish layer sweet potatoes, onion mixture, cheese, bacon, and 1/2 cream mixture. Repeat one more time. Lightly smash down layers and add one last layer of sweet potatoes and any leftover cream. Sprinkle with remaining cheese and bacon. Bake 60-90 minutes or until potatoes are softened.
Choosing a selection results in a full page refresh.