fix: update sitemap with pSeo pages, fix dynamic metadata placeholders, and add llms.txt
This commit is contained in:
@@ -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];
|
||||
}
|
||||
Reference in New Issue
Block a user