cache queries and revalidate with incremental static regeneration

This commit is contained in:
2026-07-07 02:32:21 +02:00
parent d63b14b2e5
commit e600d0a663
22 changed files with 381 additions and 114 deletions
+6 -1
View File
@@ -1,4 +1,5 @@
import { getClient } from "@/app/client";
import { uncached } from "@/lib/revalidation";
import { PreviewBanner } from "@/components/general/PreviewBanner";
import {
AssociationIndexView,
@@ -149,7 +150,11 @@ export default async function PreviewRender() {
return <ExpiredPreview />;
}
const { data, error } = await getClient().query(previewPageQuery, { token });
const { data, error } = await getClient().query(
previewPageQuery,
{ token },
uncached
);
if (error) {
throw new Error(error.message);
}