Deploying to production - updating production indeces - I'm confused

Hello there,
I’m very sorry if I have missed this in the FAQs, but I’m very confused.

We have a Laravel 8 / Scout Extended installation in a CI environment to search for our stuff. :slight_smile:

In order to deploy to staging / test server / branch QA servers, we would need to automatically re-index if the configuration file changes.

I can do a scout:sync --keep=local console command, but in that scenario, if the configuration changes locally, i have to manually confirm the synchronisation.

Am I missing a way of programatically updating the configuration of the index on the remote server whenever the deployment occurs?

How do you all manage deploying index changes to staging / production environment?

Thank you, and apologies if I have just missed something.