Preheat your oven to 350°F. Line a 13×18-inch rimmed half-sheet pan with parchment paper and lightly grease it with cooking spray. Don't skip the parchment, it's key to getting your trees to release!
In a large mixing bowl, whisk together the sourdough discard, sugar, buttermilk, avocado oil, eggs, and vanilla extract until smooth and fully combined.
½ (120g) cup sourdough discard, 1¼ (250g) cups granulated sugar, ¾ (180g) cup buttermilk, ⅔ (140g) cup avocado oil, 3 large eggs, 1 (15g) tablespoon vanilla extract
Sourdough Discard Swap: If you are making this cake without discard, add the additional buttermilk to the wet ingredients above and the extra flour to the dry ingredients below.
1/2 (60g) cup all-purpose flour, 1/4 (60g) cup buttermilk
In a separate bowl, whisk together the flour, baking powder, baking soda, and salt.
1¾ (225g) cups all-purpose flour, 2 teaspoons baking powder, ¼ teaspoon baking soda, ¾ teaspoon fine sea salt
Add the dry ingredients to the wet ingredients, gently mixing just until combined. Scrape down the sides and bottom of the bowl to incorporate any remaining flour. Avoid overmixing this or your cake will be tough!
Optional Overnight Fermentation: Cover the bowl with plastic wrap, and refrigerate overnight of you want to ferment the cake batter. Remove from the refrigerator and allow the batter to rest about an hour to warm up before you bake the cake.
Pour the cake batter into the prepared half-sheet pan. Use an offset spatula to spread the batter evenly into the corners. Gently tap the pan on the counter to release any large air bubbles.
Bake the cake for 12–18 minutes, checking around 12 minutes. The cake is ready when the center is set, the top springs back lightly when touched, and a toothpick inserted into the center comes out clean or with a few moist crumbs.
Let the cake cool at room temperature about 10 minutes, then transfer the cake to the refrigerator for about 30 minutes before cutting out the tree shapes. The cake must be fully cooled before you cut them out!