That’s why energy storage is important.
Extraction of key metals from batteries (ie.: recycling) does need to be developed further, but in terms of total capacity, that is a bigger future concern than a present one.
One of the main advantages of battery storage, apart from decoupling production and consumption, is that it enables delocalization (and portability) of energy sources.