fix: update sitemap with pSeo pages, fix dynamic metadata placeholders, and add llms.txt

This commit is contained in:
AyrisAI
2026-05-16 00:58:25 +03:00
parent d0a7205f90
commit ea09a4fb04
3 changed files with 118 additions and 80 deletions

View File

@@ -28,5 +28,23 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
priority: 0.6,
}));
return [...staticPages, ...projectPages];
// Programmatic SEO pages (Services + Locations)
const [services, locations] = await Promise.all([
sql`SELECT slug FROM services`,
sql`SELECT slug FROM locations`
]);
const pSeoPages = [];
for (const service of services) {
for (const location of locations) {
pSeoPages.push({
url: `${baseUrl}/services/${service.slug}/${location.slug}`,
lastModified: new Date(),
changeFrequency: 'weekly' as const,
priority: 0.7,
});
}
}
return [...staticPages, ...projectPages, ...pSeoPages];
}