From f8cef5883d9ee14dd5d97412abf86e09e78ed0d0 Mon Sep 17 00:00:00 2001 From: James Fenn Date: Mon, 12 Jan 2026 00:48:37 +0000 Subject: [PATCH 1/2] add porkbun redirect for www subdomain --- modules/playful-web/main.tf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/playful-web/main.tf b/modules/playful-web/main.tf index 492c650..007f32e 100644 --- a/modules/playful-web/main.tf +++ b/modules/playful-web/main.tf @@ -160,3 +160,12 @@ resource "porkbun_dns_record" "apex" { content = each.value ttl = 600 } + +resource "porkbun_url_forward" "redirect" { + domain = var.domain + subdomain = "www" + include_path = true + location = var.domain + type = "permanent" + wildcard = true +} From 7ffd3420db1e6c43343c8093f6bd9c0d78ac82ee Mon Sep 17 00:00:00 2001 From: James Fenn Date: Mon, 12 Jan 2026 00:52:00 +0000 Subject: [PATCH 2/2] set wildcard=false on www redirect --- modules/playful-web/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/playful-web/main.tf b/modules/playful-web/main.tf index 007f32e..2c0e874 100644 --- a/modules/playful-web/main.tf +++ b/modules/playful-web/main.tf @@ -167,5 +167,5 @@ resource "porkbun_url_forward" "redirect" { include_path = true location = var.domain type = "permanent" - wildcard = true + wildcard = false }