feat: static generation

This commit is contained in:
ner committed 2024-11-04 12:47:15 +02:00
1 parent 25866b9eb9
commit e5c44fe359
7 files changed
+10 -10

No files matched your search

+2 -2
View File
@@ -12,10 +12,10 @@ export const metadata: Metadata = {
description: `Check out the most popular movies right now on ${TITLE}. See what’s trending and don’t miss out on the latest hits.`
};
const Popular = () => {
const Popular = async () => {
const queryClient = getQueryClient();
queryClient.prefetchInfiniteQuery(popularQuery());
await queryClient.prefetchInfiniteQuery(popularQuery());
return (
<HydrationBoundary state={dehydrate(queryClient)}>