feat: implement programmatic SEO infrastructure with localized service pages
This commit is contained in:
@@ -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 || []} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user