export static

This commit is contained in:
2025-01-11 17:06:23 +03:00
parent df505ff51d
commit ad5d841b5d
5 changed files with 29 additions and 3 deletions

View File

@ -5,6 +5,19 @@ import InfoItem from "@/components/info-item";
import HumanCard from "@/components/human-card";
import SocialItem from "@/components/social-item";
export async function generateStaticParams() {
// Моканные данные мероприятий
const events = [
{ slug: 'event-1' },
{ slug: 'event-2' },
{ slug: 'event-3' },
];
return events.map(event => ({
slug: event.slug,
}));
}
export default function Page() {
const infoItems = [
{

View File

@ -5,6 +5,19 @@ import InfoItem from "@/components/info-item";
import Image from "next/image";
import SocialItem from "@/components/social-item";
export async function generateStaticParams() {
// Моканные данные участников
const participants = [
{ slug: '1' },
{ slug: '2' },
{ slug: '3' },
];
return participants.map(participant => ({
slug: participant.slug,
}));
}
export default function Page() {
return(
<main>