From c138afadb9a7c6e04113ea6a7fd19d0f46050e68 Mon Sep 17 00:00:00 2001 From: Sebastien Castiel Date: Fri, 19 Jan 2024 12:43:08 -0500 Subject: Bring back NEXT_PUBLIC_BASE_URL --- src/app/robots.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/app/robots.ts') diff --git a/src/app/robots.ts b/src/app/robots.ts index 2492611..5fb07a6 100644 --- a/src/app/robots.ts +++ b/src/app/robots.ts @@ -1,3 +1,4 @@ +import { env } from '@/lib/env' import { MetadataRoute } from 'next' export default function robots(): MetadataRoute.Robots { @@ -7,8 +8,6 @@ export default function robots(): MetadataRoute.Robots { allow: '/', disallow: '/groups/', }, - sitemap: process.env.VERCEL_URL - ? `${process.env.VERCEL_URL}/sitemap.xml` - : undefined, + sitemap: `${env.NEXT_PUBLIC_BASE_URL}/sitemap.xml`, } } -- cgit v1.3