updates
This commit is contained in:
@@ -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 [];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user