In a large mixing bowl add softened butter, cane sugar, and brown sugar.
Use an electric mixer on medium speed with the beater attachments and mix for 2 minutes until creamy.
Add in egg and mix until completely combined.
Add in vanilla, baking soda, salt, and sourdough discard. Mix until combined.
Add in flour and mix until combined completely. Scrape down sides of the bowl to incorporate all flour.
Stir in chocolate chips and chopped pistachios.
Place dough in the fridge for 1 hour to chill (don't skip this step).
Optional: If you’d like to long ferment the dough for more sourdough gut benefits let it sit in the fridge for 12-24 hours before baking.
After chilling for 1 hour (or after the long ferment), preheat the oven to 350 degrees and line a large baking sheet with parchment paper.
Scoop dough (2-2.5 Tbsp per cookie) so its rounded and place 2” apart from one another on the baking sheet pan.
Do this until all dough is used up.
Bake for 15-18 minutes until bottoms are golden brown.IMPORTANT: The centers will be a little soft still, this is what you want! They will set up more as the cookie cools. 15 minutes for softer centers or 18 minutes for more fully baked. (If you make smaller cookies than 2-2.5 Tbsp of dough, bake for less time.) Transfer cookies to a cooling rack and enjoy!