disable graphql query result caching

This commit is contained in:
2024-05-10 15:26:07 +02:00
parent 8f10cc615c
commit db8c88ffba
2 changed files with 2 additions and 5 deletions

View File

@ -34,13 +34,8 @@ export default async function Page({ params }: { params: { slug: string } }) {
slug: params.slug, slug: params.slug,
}); });
// console.log('data', data)
// console.log('error', error)
const event = (data?.event ?? {}) as EventFragment; const event = (data?.event ?? {}) as EventFragment;
console.log("event", event);
return ( return (
<main className="site-main" id="main"> <main className="site-main" id="main">
<section className="page-header"> <section className="page-header">

View File

@ -5,6 +5,8 @@ const makeClient = () => {
return createClient({ return createClient({
url: process.env.GRAPHQL_ENDPOINT ?? "", url: process.env.GRAPHQL_ENDPOINT ?? "",
exchanges: [cacheExchange, fetchExchange], exchanges: [cacheExchange, fetchExchange],
// requestPolicy: "network-only",
fetchOptions: { cache: "no-store" },
}); });
}; };