From 9fc0a0d935ba995a02593a20e30e09e6e9e06544 Mon Sep 17 00:00:00 2001 From: Zack Pollard <zackpollard@ymail.com> Date: Thu, 30 May 2024 11:08:27 +0100 Subject: [PATCH] ci: fix incorrect subdomain used for docs (#9890) --- deployment/modules/cloudflare/docs/domain.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/modules/cloudflare/docs/domain.tf b/deployment/modules/cloudflare/docs/domain.tf index 26422bcf2e..d662c37d87 100644 --- a/deployment/modules/cloudflare/docs/domain.tf +++ b/deployment/modules/cloudflare/docs/domain.tf @@ -9,7 +9,7 @@ resource "cloudflare_record" "immich_app_branch_subdomain" { proxied = true ttl = 1 type = "CNAME" - value = "${replace(var.prefix_name, "/\\/|\\./", "-")}.${data.terraform_remote_state.cloudflare_account.outputs.immich_app_pages_project_subdomain}" + value = "${replace(var.prefix_name, "/\\/|\\./", "-")}.${local.is_release ? data.terraform_remote_state.cloudflare_account.outputs.immich_app_archive_pages_project_subdomain : data.terraform_remote_state.cloudflare_account.outputs.immich_app_preview_pages_project_subdomain}" zone_id = data.terraform_remote_state.cloudflare_account.outputs.immich_app_zone_id }