SEO blogpost
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { MetadataRoute } from 'next'
|
||||
import { germanSeoPageSlugs, getGermanSeoPageBySlug } from '@/lib/seoPages'
|
||||
import { spanishSeoPageProfiles, spanishSeoPageSlugs } from '@/lib/spanishSeoPages'
|
||||
import { blogPosts } from '@/lib/blogPosts'
|
||||
|
||||
export default function sitemap(): MetadataRoute.Sitemap {
|
||||
const baseUrl = (process.env.NEXT_PUBLIC_SITE_URL || 'https://greenlenspro.com').trim()
|
||||
@@ -153,6 +154,18 @@ export default function sitemap(): MetadataRoute.Sitemap {
|
||||
changeFrequency: 'monthly',
|
||||
priority: 0.85,
|
||||
},
|
||||
{
|
||||
url: `${baseUrl}/blog`,
|
||||
lastModified: new Date('2026-08-04'),
|
||||
changeFrequency: 'weekly',
|
||||
priority: 0.85,
|
||||
},
|
||||
...Object.keys(blogPosts).map((slug) => ({
|
||||
url: `${baseUrl}/blog/${slug}`,
|
||||
lastModified: new Date('2026-08-05'),
|
||||
changeFrequency: 'monthly' as const,
|
||||
priority: 0.8,
|
||||
})),
|
||||
...spanishSeoPageSlugs.map((slug) => ({
|
||||
url: `${baseUrl}${spanishSeoPageProfiles[slug].canonical}`,
|
||||
lastModified: new Date('2026-07-10'),
|
||||
|
||||
Reference in New Issue
Block a user