We are using Experience Cloud with B2B Commerce and are intending on going live very soon. Our marketing department will be handling metadata changes in our components (eg. we have a banner LWC which takes inputs for the text to display, and marketing will make changes to that text), and we're looking for how to sync that between our dev, preproduction and production orgs.
We attempted to retrieve and deploy metadata this way by pulling from our development org and deploying into preproduction, but it created a bit of a mess where the Experience wasn't displaying correctly, was missing our site's custom CSS and so forth even though all indications pointed to it deploying everything without issue.
I notice that in that metadata the components have IDs which on inspection did not match between the two sites (we pulled down the metadata for the sites on both orgs and compared the two prior to the push). Some IDs matched, others did not - is this indicative of a discrepancy between the component version (the component on dev has stuff added to it that hasn't been pushed to preprod yet), or are these site-specific IDs?
All this to say, is there any way we can handle these metadata syncs, and does pushing programmatic changes to a component wipe out the metadata that marketing enters in production?