If storing in the fridge, cover the surface with a thin layer of olive oil to prevent it from browning. Alternatively, you could also press a piece of plastic wrap directly on the surface of the pesto.