Why does WordPress store ‘siteurl’ and ‘home’ in the database?
It’s driving me crazy because I develop locally, deploy to a staging site, AND to a production site, so that’s two-three times I have to go through the database to replace all those values. It seems kind of backwards to store this value, when you can just get it from the URL the site is running from, so I must be missing some context or something.
I’d love some solutions where I don’t have to search and replace every single time I deploy changes. I want to be able to just copy files and the database and have it work, like literally every other system I use. (Drupal, Laravel, Rails)