Preheat oven to 350°F (175°C). Line a 9x13-inch baking pan with parchment paper, leaving an overhang on two sides, and lightly grease the parchment.
Whisk together flour, granulated sugar, and salt in a large bowl. Cut in cold cubed butter with your fingers or a pastry cutter until the mixture resembles coarse crumbs with some pea-sized pieces remaining.
Add vanilla and mix until the dough holds together when pressed. Press evenly into the prepared pan, using the bottom of a measuring cup to compact firmly.
Bake the crust for 20 minutes until lightly golden around the edges but still pale in the center. Remove and set aside.
Whisk eggs in a medium bowl until smooth. Add brown sugar and whisk vigorously until well combined and slightly lighter in color.
Pour in coconut milk, corn syrup, and melted butter, whisking constantly to keep the eggs from cooking. Add fish sauce, lime zest, vanilla, salt, and ground ginger, whisking until smooth and glossy with no lumps of sugar remaining.
Arrange pecan halves evenly over the warm crust, covering the entire surface. Sprinkle shredded coconut over the pecans if using.
Carefully pour the filling mixture over the pecans, starting from the center and working outward. Tap the pan gently on the counter to release air bubbles.
Bake for 25 to 30 minutes until the filling is set around the edges but still has a slight jiggle in the center. The top should be golden brown and the pecans nicely toasted.
Cool completely in the pan on a cooling rack, at least 2 hours. For cleaner cuts, refrigerate for 1 hour before slicing.
Use the parchment overhang to lift the slab onto a cutting board. Slice into 24 squares with a sharp knife, wiped clean between cuts.