From ae26c4c8f7b63506130f3589532a27acd1b2f2b2 Mon Sep 17 00:00:00 2001 From: M1kola Date: Mon, 13 Jan 2025 22:16:12 +0300 Subject: [PATCH] generate static comments --- app/events/[slug]/page.tsx | 24 ++++++++++++------------ app/participants/[slug]/page.tsx | 24 ++++++++++++------------ next.config.ts | 2 +- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/app/events/[slug]/page.tsx b/app/events/[slug]/page.tsx index 3851cb9..1038b95 100644 --- a/app/events/[slug]/page.tsx +++ b/app/events/[slug]/page.tsx @@ -5,18 +5,18 @@ 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 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 = [ diff --git a/app/participants/[slug]/page.tsx b/app/participants/[slug]/page.tsx index 17e7981..41013a8 100644 --- a/app/participants/[slug]/page.tsx +++ b/app/participants/[slug]/page.tsx @@ -5,18 +5,18 @@ 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 async function generateStaticParams() { +// // Моканные данные участников +// const participants = [ +// { slug: '1' }, +// { slug: '2' }, +// { slug: '3' }, +// ]; +// +// return participants.map(participant => ({ +// slug: participant.slug, +// })); +// } export default function Page() { return( diff --git a/next.config.ts b/next.config.ts index 8401901..076eec9 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,7 +1,7 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { - output: 'export' + // output: 'export' }; export default nextConfig;