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/robots.ts | |
| parent | 23524cb94314fd50476ccffe654841d980c713d7 (diff) | |
Remove varianle NEXT_PUBLIC_BASE_URL
Diffstat (limited to 'src/app/robots.ts')
| -rw-r--r-- | src/app/robots.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/app/robots.ts b/src/app/robots.ts index 5fb07a6..2492611 100644 --- a/src/app/robots.ts +++ b/src/app/robots.ts @@ -1,4 +1,3 @@ -import { env } from '@/lib/env' import { MetadataRoute } from 'next' export default function robots(): MetadataRoute.Robots { @@ -8,6 +7,8 @@ export default function robots(): MetadataRoute.Robots { allow: '/', disallow: '/groups/', }, - sitemap: `${env.NEXT_PUBLIC_BASE_URL}/sitemap.xml`, + sitemap: process.env.VERCEL_URL + ? `${process.env.VERCEL_URL}/sitemap.xml` + : undefined, } } |
