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",
credentials: "include",
// Next.js
next: {
revalidate: 1,
},
cache: 'no-store'
};
if (data) {
options.body = JSON.stringify(data);