Grafana alert provisioning default data source

When setting a query / alert condition in Grafana, how can I make it so the alert rule defaults to the default data source of the environment?

My workflow:

  • create alert rule on Grafana
  • export it using the alert provisioning API
  • use alert in new environment

Unfortunately, the datasourceUid is then set to the environment where the alert rule was created; is it possible to change it so that the alert rule uses the default data source whatever environment it is provisioned in?