diff options
| author | Sebastien Castiel <sebastien@castiel.me> | 2024-01-19 12:43:08 -0500 |
|---|---|---|
| committer | Sebastien Castiel <sebastien@castiel.me> | 2024-01-19 12:43:17 -0500 |
| commit | c138afadb9a7c6e04113ea6a7fd19d0f46050e68 (patch) | |
| tree | b87ce0ac668b59001aff2078fd0f842ced77244d /src/app/sitemap.ts | |
| parent | 18ac2142a8544069267640fa1f6f9b92356c2cce (diff) | |
Bring back NEXT_PUBLIC_BASE_URL
Diffstat (limited to 'src/app/sitemap.ts')
| -rw-r--r-- | src/app/sitemap.ts | 19 |
1 files changed, 9 insertions, 10 deletions
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, + }, + ] } |
