From 69022e3d5f0ebf5a3b804025ad848ca0bf87c8af Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 18 May 2023 17:41:56 +0100 Subject: [PATCH] feat: use custom domain for sitemap --- src/app/site/[site]/sitemap.xml/route.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/site/[site]/sitemap.xml/route.ts b/src/app/site/[site]/sitemap.xml/route.ts index e0a4fcc0..b9483e37 100644 --- a/src/app/site/[site]/sitemap.xml/route.ts +++ b/src/app/site/[site]/sitemap.xml/route.ts @@ -43,6 +43,7 @@ export const GET = async (req: NextRequest) => { const link = getSiteLink({ subdomain: site?.handle || "", + domain: site?.metadata?.content?.custom_domain, }) return response.headers({ "Content-Type": "text/xml",