27 lines
630 B
TypeScript
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} />;
|
|
}
|