From 525a5cbf5aaaa7e0bc7f5529a5dba62811552f4f Mon Sep 17 00:00:00 2001 From: Joseph Page Date: Wed, 3 May 2023 15:27:57 +0200 Subject: [PATCH] fix: fix syntax error in url output --- output.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output.tf b/output.tf index 2a6d84e..062fea7 100644 --- a/output.tf +++ b/output.tf @@ -1,6 +1,6 @@ output "url" { description = "Base URL to access the application (`https://*`). If you have set a canonical domain, this will be the URL with the canonical domain, otherwise it will be the default URL of the Scalingo application." - value = (var.canonical_domain == "" ? scalingo_app.app.url : "https://${var.canonical_domain}") + value = (var.domain != null ? "https://${var.domain}" : scalingo_app.app.url) } output "domain" {