mirror of
https://github.com/spliit-app/spliit.git
synced 2026-03-02 11:26:11 +01:00
Remove varianle NEXT_PUBLIC_BASE_URL
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user