cache no-store bruke the build, set next to revalidate instad

This commit is contained in:
2024-05-14 22:15:54 +02:00
parent c8dc452fee
commit 3d240686e3

View File

@ -1,4 +1,4 @@
import "server-only"
import "server-only";
import { cacheExchange, createClient, fetchExchange } from "@urql/core";
import { registerUrql } from "@urql/next/rsc";
@ -8,7 +8,7 @@ const makeClient = () => {
url: process.env.GRAPHQL_ENDPOINT ?? "",
exchanges: [cacheExchange, fetchExchange],
// requestPolicy: "network-only",
fetchOptions: { cache: "no-store" },
fetchOptions: { next: { revalidate: 0 } },
});
};