diff options
| author | Sebastien Castiel <sebastien@castiel.me> | 2024-01-19 12:03:16 -0500 |
|---|---|---|
| committer | Sebastien Castiel <sebastien@castiel.me> | 2024-01-19 12:03:16 -0500 |
| commit | 4d86c8c72714879e8e6c060479b02c553d35bb0f (patch) | |
| tree | 22459eb419318b9530710402c64a78a9ac0b142f /src/app/sitemap.ts | |
| parent | 23524cb94314fd50476ccffe654841d980c713d7 (diff) | |
Remove varianle NEXT_PUBLIC_BASE_URL
Diffstat (limited to 'src/app/sitemap.ts')
| -rw-r--r-- | src/app/sitemap.ts | 19 |
1 files changed, 10 insertions, 9 deletions
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, + }, + ] + : [] } |
