Manage Algolia configuration in code
Follow up from #1278 (closed)
Algolia crawler and index configuration are currently only saved at Algolia. This is not ideal because:
- If an index or crawler is dropped, all related configuration is lost.
- We cannot track changes over time or easily tell when a regression was introduced.
Index configuration is importable/exportable as JSON via the UI. We could include a config export in this repo at the very least. Possibly better would be to use a tool like Terraform to ensure the exported config and actual application state are in sync.
This might work: https://registry.terraform.io/providers/k-yomo/algolia/latest/docs
An MVC could be to export our config and update our documentation to encourage developers to update those files if they make changes via the Algolia UI.
Edited by Sarah German