Call the preview environment variable relationship as a query when building the legacy configuration hash, and cover preview deployments with a regression test.