diff --git a/apps/site/app/(base)/page.tsx b/apps/site/app/(base)/page.tsx index 4e674261..cb82678d 100644 --- a/apps/site/app/(base)/page.tsx +++ b/apps/site/app/(base)/page.tsx @@ -3,6 +3,8 @@ import { getAllAdds } from '@/gql' import { ItemCard } from '@/server' import { ItemDropdown, PaginationControls } from '@/client' +export const maxDuration = 30 // This function can run for a maximum of 30 seconds + export default async function Home({ searchParams, }: { searchParams: { [key: string]: string | string[] | undefined } }) { diff --git a/apps/site/app/[username]/page.tsx b/apps/site/app/[username]/page.tsx index 5591d5fa..b33e116d 100644 --- a/apps/site/app/[username]/page.tsx +++ b/apps/site/app/[username]/page.tsx @@ -5,6 +5,8 @@ import { ChannelCard } from '@/server' import { pluralize, sortChannels } from '@/utils' import { ChannelDialog, NewChannelTrigger, UserSettings } from '@/client' +export const maxDuration = 30 // This function can run for a maximum of 30 seconds + export default async function Profile({ params, }: { diff --git a/apps/site/app/channel/[id]/[index]/page.tsx b/apps/site/app/channel/[id]/[index]/page.tsx index 485fedd1..2404a242 100644 --- a/apps/site/app/channel/[id]/[index]/page.tsx +++ b/apps/site/app/channel/[id]/[index]/page.tsx @@ -6,7 +6,7 @@ import { kv } from '@vercel/kv' import { P, match } from 'ts-pattern' import { AudioPlayer, VideoPlayer } from '@/client' import { Flex, Stack, Typography, Separator } from '@/design-system' -import { getChannelWithId, getAddWithChannelIndex } from '@/gql' +import { getAddWithChannelIndex } from '@/gql' import { type MediaAssetObject, ipfsUrlToCid, @@ -36,6 +36,8 @@ const PdfViewer = dynamic( { ssr: false }, ) +export const maxDuration = 30 // This function can run for a maximum of 30 seconds + export default async function ItemPage({ params, searchParams, diff --git a/apps/site/app/channel/[id]/page.tsx b/apps/site/app/channel/[id]/page.tsx index 5d73451d..703e19da 100644 --- a/apps/site/app/channel/[id]/page.tsx +++ b/apps/site/app/channel/[id]/page.tsx @@ -10,6 +10,8 @@ import { RecentChannels, } from '@/server' +export const maxDuration = 30 // This function can run for a maximum of 30 seconds + export default async function Channel({ params, searchParams,