From 4d86c8c72714879e8e6c060479b02c553d35bb0f Mon Sep 17 00:00:00 2001 From: Sebastien Castiel Date: Fri, 19 Jan 2024 12:03:16 -0500 Subject: Remove varianle NEXT_PUBLIC_BASE_URL --- src/app/sitemap.ts | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/app/sitemap.ts') diff --git a/src/app/sitemap.ts b/src/app/sitemap.ts index a3b92a1..7dfbba7 100644 --- a/src/app/sitemap.ts +++ b/src/app/sitemap.ts @@ -1,13 +1,14 @@ -import { env } from '@/lib/env' import { MetadataRoute } from 'next' export default function sitemap(): MetadataRoute.Sitemap { - return [ - { - url: env.NEXT_PUBLIC_BASE_URL, - lastModified: new Date(), - changeFrequency: 'yearly', - priority: 1, - }, - ] + return process.env.VERCEL_URL + ? [ + { + url: process.env.VERCEL_URL, + lastModified: new Date(), + changeFrequency: 'yearly', + priority: 1, + }, + ] + : [] } -- cgit v1.3