This commit is contained in:
Iliyan Angelov
2025-11-25 02:06:38 +02:00
parent 2f6dca736a
commit 82024016cd
37 changed files with 1800 additions and 1478 deletions

View File

@@ -19,6 +19,11 @@ interface ServicePageProps {
}>;
}
// Force static generation - pages are pre-rendered at build time
export const dynamic = 'force-static';
export const dynamicParams = false; // Return 404 for unknown slugs
export const revalidate = false; // Never revalidate - fully static
// Generate static params for all services (optional - for better performance)
export async function generateStaticParams() {
try {
@@ -27,6 +32,7 @@ export async function generateStaticParams() {
slug: service.slug,
}));
} catch (error) {
console.error('Error generating static params for services:', error);
return [];
}
}

View File

@@ -28,7 +28,8 @@ const SupportCenterPage = () => {
url: "/support-center",
});
document.title = metadata.title || "Support Center | GNX Soft";
const titleString = typeof metadata.title === 'string' ? metadata.title : "Support Center | GNX Soft";
document.title = titleString;
let metaDescription = document.querySelector('meta[name="description"]');
if (!metaDescription) {