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/sitemap.ts | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'src/app/sitemap.ts') diff --git a/src/app/sitemap.ts b/src/app/sitemap.ts index 7dfbba7..a3b92a1 100644 --- a/src/app/sitemap.ts +++ b/src/app/sitemap.ts @@ -1,14 +1,13 @@ +import { env } from '@/lib/env' import { MetadataRoute } from 'next' export default function sitemap(): MetadataRoute.Sitemap { - return process.env.VERCEL_URL - ? [ - { - url: process.env.VERCEL_URL, - lastModified: new Date(), - changeFrequency: 'yearly', - priority: 1, - }, - ] - : [] + return [ + { + url: env.NEXT_PUBLIC_BASE_URL, + lastModified: new Date(), + changeFrequency: 'yearly', + priority: 1, + }, + ] } -- cgit v1.3