Whenever I deploy my site from staging to live, or live to staging, key parts of my site are wiped out, like which menu is the primary menu, my site logo and site icon are gone, and the copyright text in the footer reverts to saying GeneratePress.
Literally the only thing I’m changing during this process is an IP address in the database… everything else is the same, yet the data is lost when the URL changes. How do I prevent this from happening?