Prepare the potatoes: Peel and dice potatoes into ½-inch cubes. Boil in salted water until tender, then drain and cool.
Sauté the onions: Dice onions and cook in a non-stick skillet with butter and salt until tender. Let cool.
Make the filling: Whisk together heavy cream, Dijon mustard, flour, salt, and pepper. Combine cooled potatoes, sautéed onions, and cheese; mix in the cream mixture.
Assemble the pies: Roll out puff pastry, cut into rectangles, fill with mixture, seal edges with egg wash.
Bake: Preheat the oven to 425°F (220°C). Bake for 25-30 minutes until golden brown.
