The day before, or several hours before, make crème pâtissière (confectioner's custard).
Roll out puff pastry as thinly as possible. Then put on a baking sheet in the fridge for about one hour, so that if it needs to shrink, it happens in the fridge instead of the oven.
It is very difficult to make a regular rectangle (see photo) but don't worry about that.