Making a Napoleon cake with store-bought pastry is a great timesaver for weeknight baking. To keep the layers from getting soggy, you should ensure that your pastry is baked until crisp and golden brown. When you assemble the cake, make sure you spread an even layer of custard between each sheet of pastry. A common reason for sogginess is that the custard might be applied while it is still too warm, which melts the structure of the pastry. Letting the custard cool down completely before assembly will help maintain the crunch for a longer period. However, you do not need to worry about letting it sit too long, as serving it immediately after assembly is always the best approach for maximum crispiness.