Files
videoreg.ru/web-front/legacy/showcase-page.tsx
T
huncode 53e4f06486
Production container deploy / production (push) Failing after 2m34s
Restore videoreg public guide site with static isolated deployment
2026-10-26 14:26:13 +03:00

27 lines
630 B
TypeScript

import { notFound } from 'next/navigation';
import { dashcamProducts } from '@/entities/dashcam/model/data';
import { BestDashcamsPage } from '@/shared/ui/templates/BestDashcamsPage';
export const dynamicParams = false;
export const revalidate = 3600;
export function generateStaticParams() {
return [{ devRoot: '_dev' }];
}
type ShowcasePageProps = {
params: Promise<{
devRoot: string;
}>;
};
export default async function ShowcasePage({ params }: ShowcasePageProps) {
const { devRoot } = await params;
if (devRoot !== '_dev') {
notFound();
}
return <BestDashcamsPage products={dashcamProducts} />;
}