Unroll the puff pastry onto a baking tray lined with baking paper. Using a sharp knife, score a border about 2cm wide around the edge of the pastry without cutting all the way through. Prick the centre of the pastry with a fork.
Spread the cream cheese evenly over the centre of the pastry, keeping within the scored border.
Dot small spoonfuls of pesto over the cream cheese, then gently swirl it through.
Arrange the tomato slices and courgette over the cream cheese mixture. Scatter the mozzarella pieces over the top.
Sprinkle with the pine nuts and Parmesan. Drizzle with a little olive oil and season with sea salt and pepper. Brush the pastry border with the beaten egg and scatter with a few nigella seeds.
Bake for 25–30 minutes, or until the pastry is golden, crisp and well-risen, and the cheese is bubbling.
Finish with fresh basil leaves and a little more pesto or a balsamic vinegar glaze, if desired.
Michelle Evans-Fecci recipe for Prynhawn Da. Instagram - bakesbymichelle