Which is why a lot of generating capacity is wind, not just solar.
Which is why utilities are focusing on energy storage and grid improvements like upgrading transmission lines to HVDC to make it more practical to 'ship' excess wind/solar to regions that need it.