Fortunately, that very rarely happens, so backing it up with gas turbine plants (burning hydrogen, ultimately) is cheaper than dealing with the 365/24/7 high cost of nuclear.
This uses real weather data for various countries and optimize solar + wind + batteries + hydrogen to provide a constant output at minimum cost. The results are interesting. You can tweak the cost assumptions.