This commit is contained in:
parent
b1fd02b67c
commit
848469c0b9
|
@ -1,28 +0,0 @@
|
||||||
import Header from '@/components/header';
|
|
||||||
import Footer from '@/components/footer';
|
|
||||||
import ConferenceDetails from '@/components/conferences/conference-details';
|
|
||||||
import { Suspense } from 'react';
|
|
||||||
|
|
||||||
// This tells Next.js to allow pages to be generated on-demand
|
|
||||||
// for params not returned by generateStaticParams.
|
|
||||||
export const dynamicParams = true;
|
|
||||||
|
|
||||||
export async function generateStaticParams() {
|
|
||||||
// Since conference rooms are dynamic and may require authentication to list,
|
|
||||||
// we can't statically generate them at build time.
|
|
||||||
// Returning an empty array will prevent build errors, and with dynamicParams = true,
|
|
||||||
// pages will be generated on-demand when visited.
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
|
|
||||||
export default function ConferenceDetailsPage({ params }) {
|
|
||||||
return (
|
|
||||||
<Suspense fallback={<div>Loading...</div>}>
|
|
||||||
<Header />
|
|
||||||
<main className="flex-grow">
|
|
||||||
<ConferenceDetails conferenceId={params.id} />
|
|
||||||
</main>
|
|
||||||
<Footer />
|
|
||||||
</Suspense>
|
|
||||||
);
|
|
||||||
}
|
|
Loading…
Reference in a new issue