generate static comments
This commit is contained in:
parent
ad5d841b5d
commit
ae26c4c8f7
@ -5,18 +5,18 @@ import InfoItem from "@/components/info-item";
|
|||||||
import HumanCard from "@/components/human-card";
|
import HumanCard from "@/components/human-card";
|
||||||
import SocialItem from "@/components/social-item";
|
import SocialItem from "@/components/social-item";
|
||||||
|
|
||||||
export async function generateStaticParams() {
|
// export async function generateStaticParams() {
|
||||||
// Моканные данные мероприятий
|
// // Моканные данные мероприятий
|
||||||
const events = [
|
// const events = [
|
||||||
{ slug: 'event-1' },
|
// { slug: 'event-1' },
|
||||||
{ slug: 'event-2' },
|
// { slug: 'event-2' },
|
||||||
{ slug: 'event-3' },
|
// { slug: 'event-3' },
|
||||||
];
|
// ];
|
||||||
|
//
|
||||||
return events.map(event => ({
|
// return events.map(event => ({
|
||||||
slug: event.slug,
|
// slug: event.slug,
|
||||||
}));
|
// }));
|
||||||
}
|
// }
|
||||||
|
|
||||||
export default function Page() {
|
export default function Page() {
|
||||||
const infoItems = [
|
const infoItems = [
|
||||||
|
@ -5,18 +5,18 @@ import InfoItem from "@/components/info-item";
|
|||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import SocialItem from "@/components/social-item";
|
import SocialItem from "@/components/social-item";
|
||||||
|
|
||||||
export async function generateStaticParams() {
|
// export async function generateStaticParams() {
|
||||||
// Моканные данные участников
|
// // Моканные данные участников
|
||||||
const participants = [
|
// const participants = [
|
||||||
{ slug: '1' },
|
// { slug: '1' },
|
||||||
{ slug: '2' },
|
// { slug: '2' },
|
||||||
{ slug: '3' },
|
// { slug: '3' },
|
||||||
];
|
// ];
|
||||||
|
//
|
||||||
return participants.map(participant => ({
|
// return participants.map(participant => ({
|
||||||
slug: participant.slug,
|
// slug: participant.slug,
|
||||||
}));
|
// }));
|
||||||
}
|
// }
|
||||||
|
|
||||||
export default function Page() {
|
export default function Page() {
|
||||||
return(
|
return(
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import type { NextConfig } from "next";
|
import type { NextConfig } from "next";
|
||||||
|
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
output: 'export'
|
// output: 'export'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default nextConfig;
|
export default nextConfig;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user