feat(seo): complete end-to-end SEO overhaul — OpenGraph 1200x630 cards, canonical links, Schema.org graph, PWA manifest, and optimized robots/sitemap
This commit is contained in:
@@ -1,19 +1,92 @@
|
||||
import { Metadata } from 'next';
|
||||
import { getPageConfig } from '@/lib/config/loader';
|
||||
import { getPageConfig, getSiteConfig } from '@/lib/config/loader';
|
||||
import { SectionRenderer } from '@/components/sections/SectionRenderer';
|
||||
import { notFound } from 'next/navigation';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Privacy Policy | CRE Innovations',
|
||||
description: 'Full privacy policy: transient image handling, zero retention, and GDPR compliance.',
|
||||
};
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
const siteUrl = (process.env.SITE_URL || getSiteConfig().seo.siteUrl || 'http://localhost:3000').replace(/\/$/, '');
|
||||
const title = 'Privacy Policy | Transient Image Handling & Zero Retention | CRE Innovations';
|
||||
const description = 'Official Privacy Policy of CRE Innovations: transient in-memory image processing, zero retention, no facial template storage, and full GDPR/CCPA compliance.';
|
||||
|
||||
return {
|
||||
title,
|
||||
description,
|
||||
keywords: ['privacy policy', 'photo data retention', 'ephemeral photo editing', 'GDPR compliance', 'CCPA compliance'],
|
||||
alternates: {
|
||||
canonical: `${siteUrl}/privacy`,
|
||||
},
|
||||
openGraph: {
|
||||
title,
|
||||
description,
|
||||
url: `${siteUrl}/privacy`,
|
||||
siteName: 'CRE Innovations',
|
||||
locale: 'en_US',
|
||||
type: 'website',
|
||||
images: [{ url: `${siteUrl}/brand/og-default.png`, width: 1200, height: 630, alt: 'CRE Innovations Privacy Policy' }],
|
||||
},
|
||||
twitter: {
|
||||
card: 'summary_large_image',
|
||||
title,
|
||||
description,
|
||||
images: [`${siteUrl}/brand/og-default.png`],
|
||||
creator: '@CREInnovations',
|
||||
},
|
||||
robots: {
|
||||
index: true,
|
||||
follow: true,
|
||||
googleBot: {
|
||||
index: true,
|
||||
follow: true,
|
||||
'max-video-preview': -1,
|
||||
'max-image-preview': 'large',
|
||||
'max-snippet': -1,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export default function PrivacyPage() {
|
||||
const page = getPageConfig('privacy');
|
||||
if (!page) notFound();
|
||||
|
||||
const siteUrl = (process.env.SITE_URL || getSiteConfig().seo.siteUrl || 'http://localhost:3000').replace(/\/$/, '');
|
||||
|
||||
const structuredData = [
|
||||
{
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'WebPage',
|
||||
'@id': `${siteUrl}/privacy#webpage`,
|
||||
url: `${siteUrl}/privacy`,
|
||||
name: 'Privacy Policy | CRE Innovations',
|
||||
description: 'Official privacy policy detailing transient image handling and zero data storage.',
|
||||
isPartOf: { '@id': `${siteUrl}/#website` },
|
||||
},
|
||||
{
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'BreadcrumbList',
|
||||
itemListElement: [
|
||||
{
|
||||
'@type': 'ListItem',
|
||||
position: 1,
|
||||
name: 'Home',
|
||||
item: siteUrl,
|
||||
},
|
||||
{
|
||||
'@type': 'ListItem',
|
||||
position: 2,
|
||||
name: 'Privacy Policy',
|
||||
item: `${siteUrl}/privacy`,
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<div>
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(structuredData) }}
|
||||
/>
|
||||
{page.sections.map((section) => (
|
||||
<SectionRenderer key={section.id} section={section} context={{ page, locale: 'en' }} />
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user