You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
2.0 KiB
89 lines
2.0 KiB
import { MetadataRoute } from 'next'
|
|
import { Routes } from '@/config/routes'
|
|
|
|
export default function sitemap(): MetadataRoute.Sitemap {
|
|
const baseUrl = process.env.NEXT_PUBLIC_SITE_URL
|
|
|
|
if (!baseUrl?.includes('textbee.dev')) {
|
|
return [
|
|
{
|
|
url: baseUrl,
|
|
lastModified: new Date(),
|
|
changeFrequency: 'monthly' as const,
|
|
priority: 1,
|
|
},
|
|
]
|
|
}
|
|
|
|
const routes = [
|
|
{
|
|
url: baseUrl,
|
|
lastModified: new Date(),
|
|
changeFrequency: 'monthly' as const,
|
|
priority: 1,
|
|
},
|
|
{
|
|
url: `${baseUrl}#pricing`,
|
|
lastModified: new Date(),
|
|
changeFrequency: 'monthly' as const,
|
|
priority: 0.8,
|
|
},
|
|
{
|
|
url: `${baseUrl}${Routes.login}`,
|
|
lastModified: new Date(),
|
|
changeFrequency: 'monthly' as const,
|
|
priority: 0.8,
|
|
},
|
|
{
|
|
url: `${baseUrl}${Routes.register}`,
|
|
lastModified: new Date(),
|
|
changeFrequency: 'monthly' as const,
|
|
priority: 0.8,
|
|
},
|
|
{
|
|
url: `${baseUrl}${Routes.dashboard}`,
|
|
lastModified: new Date(),
|
|
changeFrequency: 'weekly' as const,
|
|
priority: 0.9,
|
|
},
|
|
{
|
|
url: `${baseUrl}${Routes.contribute}`,
|
|
lastModified: new Date(),
|
|
changeFrequency: 'monthly' as const,
|
|
priority: 0.7,
|
|
},
|
|
{
|
|
url: `${baseUrl}${Routes.privacyPolicy}`,
|
|
lastModified: new Date(),
|
|
changeFrequency: 'yearly' as const,
|
|
priority: 0.5,
|
|
},
|
|
{
|
|
url: `${baseUrl}${Routes.termsOfService}`,
|
|
lastModified: new Date(),
|
|
changeFrequency: 'yearly' as const,
|
|
priority: 0.5,
|
|
},
|
|
{
|
|
url: `${baseUrl}${Routes.refundPolicy}`,
|
|
lastModified: new Date(),
|
|
changeFrequency: 'yearly' as const,
|
|
priority: 0.5,
|
|
},
|
|
|
|
// {
|
|
// url: `${baseUrl}/docs`,
|
|
// lastModified: new Date(),
|
|
// changeFrequency: 'weekly' as const,
|
|
// priority: 0.9,
|
|
// },
|
|
// {
|
|
// url: `${baseUrl}/blog`,
|
|
// lastModified: new Date(),
|
|
// changeFrequency: 'weekly' as const,
|
|
// priority: 0.7,
|
|
// },
|
|
]
|
|
|
|
return routes
|
|
}
|