In a bowl, mix sourdough discard, flour, melted butter, milk, sugar, baking powder, baking soda, and salt until a soft dough forms. Add extra flour if needed. Let it rest while preparing fillings.
Make the Filling
Blend cream cheese, sugar, and vanilla until smooth and creamy.
Cook the Raspberry Topping
In a saucepan, cook raspberries, sugar, and cornstarch over medium heat until thick and jam-like. Cool slightly.
Assemble the Danishes
Preheat oven to 375°F (190°C). Divide dough into 8 pieces, shape into circles, and press centers. Add cream cheese filling and raspberry topping. Brush edges with egg wash.
Bake
Bake for 18–22 minutes until golden. These Sourdough Discard Raspberry Cream Cheese Danishes should be lightly crisp on the outside and soft inside.
Glaze (Optional)
Mix powdered sugar with milk and drizzle over cooled danishes.
Notes
You can make the dough ahead and refrigerate for up to 24 hours
Add lemon zest to the filling for extra brightness