cache no-store bruke the build, set next to revalidate instad
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
import "server-only"
|
import "server-only";
|
||||||
|
|
||||||
import { cacheExchange, createClient, fetchExchange } from "@urql/core";
|
import { cacheExchange, createClient, fetchExchange } from "@urql/core";
|
||||||
import { registerUrql } from "@urql/next/rsc";
|
import { registerUrql } from "@urql/next/rsc";
|
||||||
@ -8,7 +8,7 @@ const makeClient = () => {
|
|||||||
url: process.env.GRAPHQL_ENDPOINT ?? "",
|
url: process.env.GRAPHQL_ENDPOINT ?? "",
|
||||||
exchanges: [cacheExchange, fetchExchange],
|
exchanges: [cacheExchange, fetchExchange],
|
||||||
// requestPolicy: "network-only",
|
// requestPolicy: "network-only",
|
||||||
fetchOptions: { cache: "no-store" },
|
fetchOptions: { next: { revalidate: 0 } },
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user