From 3d240686e31b27258fbaa2be0d26eba7e4b2907f Mon Sep 17 00:00:00 2001 From: Jonas Braathen Date: Tue, 14 May 2024 22:15:54 +0200 Subject: [PATCH] cache no-store bruke the build, set next to revalidate instad --- web/src/app/client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/app/client.ts b/web/src/app/client.ts index b7d56ae..cdb3de2 100644 --- a/web/src/app/client.ts +++ b/web/src/app/client.ts @@ -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 } }, }); };