feat: use cache no store on requests

This commit is contained in:
swve 2023-05-12 18:26:18 +00:00
parent d8aec2b9b4
commit 97c540bcca

View file

@ -9,9 +9,7 @@ export const RequestBody = (method: string, data: any) => {
redirect: "follow", redirect: "follow",
credentials: "include", credentials: "include",
// Next.js // Next.js
next: { cache: 'no-store'
revalidate: 1,
},
}; };
if (data) { if (data) {
options.body = JSON.stringify(data); options.body = JSON.stringify(data);