File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,12 +46,6 @@ export async function generateMetadata(
4646 } satisfies Metadata ;
4747}
4848
49- export async function generateStaticParams ( ) {
50- const slugs = await client . fetch < string [ ] > (
51- groq `*[_type == "author" && defined(slug.current)].slug.current` ,
52- ) ;
53- return slugs . map ( ( slug ) => ( { slug } ) ) ;
54- }
5549
5650export default async function AuthorPage ( { params } : { params : Params } ) {
5751 const { slug } = await params ;
Original file line number Diff line number Diff line change @@ -10,14 +10,6 @@ const LIMIT = 10;
1010type Params = Promise < { num : string } > ;
1111
1212
13- export async function generateStaticParams ( ) {
14- const count = await client . fetch < number > (
15- groq `count(*[_type == "author" && defined(slug.current)])` ,
16- ) ;
17- const perPage = LIMIT ;
18- const pages = Math . ceil ( count / perPage ) ;
19- return Array . from ( { length : pages } , ( _ , i ) => ( { num : String ( i + 1 ) } ) ) ;
20- }
2113
2214export default async function Page ( { params } : { params : Params } ) {
2315 const { num } = await params ;
Original file line number Diff line number Diff line change @@ -46,12 +46,6 @@ export async function generateMetadata(
4646 } satisfies Metadata ;
4747}
4848
49- export async function generateStaticParams ( ) {
50- const slugs = await client . fetch < string [ ] > (
51- groq `*[_type == "guest" && defined(slug.current)].slug.current` ,
52- ) ;
53- return slugs . map ( ( slug ) => ( { slug } ) ) ;
54- }
5549
5650export default async function GuestPage ( { params } : { params : Params } ) {
5751 const { slug } = await params ;
Original file line number Diff line number Diff line change @@ -10,14 +10,6 @@ const LIMIT = 10;
1010type Params = Promise < { num : string } > ;
1111
1212
13- export async function generateStaticParams ( ) {
14- const count = await client . fetch < number > (
15- groq `count(*[_type == "guest" && defined(slug.current)])` ,
16- ) ;
17- const perPage = LIMIT ;
18- const pages = Math . ceil ( count / perPage ) ;
19- return Array . from ( { length : pages } , ( _ , i ) => ( { num : String ( i + 1 ) } ) ) ;
20- }
2113
2214export default async function Page ( { params } : { params : Params } ) {
2315 const [ count ] = (
Original file line number Diff line number Diff line change @@ -38,12 +38,6 @@ export async function generateMetadata(
3838 } satisfies Metadata ;
3939}
4040
41- export async function generateStaticParams ( ) {
42- const slugs = await client . fetch < string [ ] > (
43- groq `*[_type == "podcast" && defined(slug.current)].slug.current` ,
44- ) ;
45- return slugs . map ( ( slug ) => ( { slug } ) ) ;
46- }
4741
4842export default async function PodcastPage ( { params } : { params : Params } ) {
4943 const { slug } = await params ;
Original file line number Diff line number Diff line change @@ -10,14 +10,6 @@ const LIMIT = 10;
1010type Params = Promise < { num : string } > ;
1111
1212
13- export async function generateStaticParams ( ) {
14- const count = await client . fetch < number > (
15- groq `count(*[_type == "podcast" && defined(slug.current)])` ,
16- ) ;
17- const perPage = LIMIT ;
18- const pages = Math . ceil ( count / perPage ) ;
19- return Array . from ( { length : pages } , ( _ , i ) => ( { num : String ( i + 1 ) } ) ) ;
20- }
2113
2214export default async function Page ( { params } : { params : Params } ) {
2315 const [ count ] = (
Original file line number Diff line number Diff line change @@ -10,14 +10,6 @@ const LIMIT = 10;
1010type Params = Promise < { num : string } > ;
1111
1212
13- export async function generateStaticParams ( ) {
14- const count = await client . fetch < number > (
15- groq `count(*[_type == "post" && defined(slug.current)])` ,
16- ) ;
17- const perPage = LIMIT ;
18- const pages = Math . ceil ( count / perPage ) ;
19- return Array . from ( { length : pages } , ( _ , i ) => ( { num : String ( i + 1 ) } ) ) ;
20- }
2113
2214export default async function Page ( { params } : { params : Params } ) {
2315 const [ count ] = (
Original file line number Diff line number Diff line change @@ -49,12 +49,6 @@ export async function generateMetadata(
4949 } satisfies Metadata ;
5050}
5151
52- export async function generateStaticParams ( ) {
53- const slugs = await client . fetch < string [ ] > (
54- groq `*[_type == "post" && defined(slug.current)].slug.current` ,
55- ) ;
56- return slugs . map ( ( slug ) => ( { slug } ) ) ;
57- }
5852
5953export default async function PostPage ( { params } : { params : Params } ) {
6054 const { slug } = await params ;
Original file line number Diff line number Diff line change @@ -45,12 +45,6 @@ export async function generateMetadata(
4545 } satisfies Metadata ;
4646}
4747
48- export async function generateStaticParams ( ) {
49- const slugs = await client . fetch < string [ ] > (
50- groq `*[_type == "sponsor" && defined(slug.current)].slug.current` ,
51- ) ;
52- return slugs . map ( ( slug ) => ( { slug } ) ) ;
53- }
5448
5549export default async function SponsorPage ( { params } : { params : Params } ) {
5650 const { slug } = await params ;
Original file line number Diff line number Diff line change @@ -13,14 +13,6 @@ const LIMIT = 10;
1313type Params = Promise < { num : string } > ;
1414
1515
16- export async function generateStaticParams ( ) {
17- const count = await client . fetch < number > (
18- groq `count(*[_type == "sponsor" && defined(slug.current)])` ,
19- ) ;
20- const perPage = LIMIT ;
21- const pages = Math . ceil ( count / perPage ) ;
22- return Array . from ( { length : pages } , ( _ , i ) => ( { num : String ( i + 1 ) } ) ) ;
23- }
2416
2517export default async function Page ( { params } : { params : Params } ) {
2618 const [ count ] = (
You can’t perform that action at this time.
0 commit comments