mirror of
https://github.com/spliit-app/spliit.git
synced 2026-02-25 17:06:13 +01:00
Bring back NEXT_PUBLIC_BASE_URL
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { env } from '@/lib/env'
|
||||
import { MetadataRoute } from 'next'
|
||||
|
||||
export default function robots(): MetadataRoute.Robots {
|
||||
@@ -7,8 +8,6 @@ export default function robots(): MetadataRoute.Robots {
|
||||
allow: '/',
|
||||
disallow: '/groups/',
|
||||
},
|
||||
sitemap: process.env.VERCEL_URL
|
||||
? `${process.env.VERCEL_URL}/sitemap.xml`
|
||||
: undefined,
|
||||
sitemap: `${env.NEXT_PUBLIC_BASE_URL}/sitemap.xml`,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user