Effects of the electrostatic environment on superlattice Majorana nanowires