01 -
Preheat your oven to 375°F (190°C).
02 -
Start by cooking bacon pieces in a large pan until crispy. Set them aside and reserve some of the grease.
03 -
In the same pan, add butter and sliced onions. Cook on medium heat for 10 minutes, stirring often. Lower the heat and cook for another 40 minutes until caramelized. Season with salt and pepper.
04 -
Roll out your pastry and place it in a tart pan. Prick the bottom with a fork and bake for 15 minutes with pie weights. Remove weights and bake 5 more minutes until golden.
05 -
Sprinkle Gruyère cheese on the crust. Spread caramelized onions on top. Mix eggs, cream, and thyme in a bowl. Pour this mixture over the onions.
06 -
Top with more Gruyère and the bacon pieces. Bake for 25-30 minutes until the filling sets and the top turns golden brown.
07 -
Let the tart cool for a few minutes before serving.