@@ -127,8 +127,13 @@ export async function graphqlRequest<
queryOption = {
query,
variables,
- context: options?.context,
fetchPolicy: "no-cache", // 跳过 apollo client 的缓存,直接调fetch
+ context: {
+ ...options?.context,
+ fetchOptions: {
+ cache: 'no-store', // 👈 告诉 Next.js 不要缓存这个 fetch
+ },
};
}