Correction to: Nature Energy https://doi.org/10.1038/s41560-021-00920-8, published online 28 October 2021.

In the version of this Article initially published, processing errors affected the graphics in Figs. 3 and 5. In Fig. 3e,f, the two center column x-axis labels inadvertently duplicated Fig. 2e,f labels. The labels have been corrected to read “Naf850 /Cu with Li+” and “Naf1100 /Cu with Li+” from left to right, for Fig. 3e and Fig. 3f. In Fig. 5, arrow tails have been restored to the seven arrowheads at top and bottom of the figure, while in Fig. 5c, “OH” has been repositioned next to “CEI changes local.”

The changes have been made to the online version of the Article.