feat: implement programmatic SEO infrastructure with localized service pages

This commit is contained in:
AyrisAI
2026-05-16 00:55:42 +03:00
parent c5703c060d
commit d0a7205f90
5 changed files with 300 additions and 3 deletions

View File

@@ -18,7 +18,10 @@ export async function generateMetadata(): Promise<Metadata> {
}
export default async function ServicesPage() {
const services = await sql`SELECT * FROM services ORDER BY display_order ASC`;
const [services, locations] = await Promise.all([
sql`SELECT * FROM services ORDER BY display_order ASC`,
sql`SELECT * FROM locations ORDER BY display_order ASC`
]);
const servicesSchema = {
"@context": "https://schema.org",
@@ -44,7 +47,7 @@ export default async function ServicesPage() {
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(servicesSchema) }}
/>
<ServicesClient services={services || []} />
<ServicesClient services={services || []} locations={locations || []} />
</>
);
}