diff --git a/services/api/anime/getAnimeCharacters.tsx b/services/api/anime/getAnimeCharacters.tsx index 040923fa..c700634e 100644 --- a/services/api/anime/getAnimeCharacters.tsx +++ b/services/api/anime/getAnimeCharacters.tsx @@ -1,6 +1,5 @@ import { BaseFetchRequestProps, - FetchRequestProps, fetchRequest, } from '@/services/api/fetchRequest'; @@ -23,10 +22,5 @@ export default async function req({ ...props, path: `/anime/${params?.slug}/characters`, method: 'get', - config: { - next: { - revalidate: 60, - }, - }, }); } diff --git a/services/api/anime/getAnimeGenres.tsx b/services/api/anime/getAnimeGenres.tsx index 25f16144..d2c90b29 100644 --- a/services/api/anime/getAnimeGenres.tsx +++ b/services/api/anime/getAnimeGenres.tsx @@ -9,9 +9,7 @@ export default async function req(): Promise { path: `/anime/genres`, method: 'get', config: { - next: { - revalidate: false, - }, + cache: 'force-cache', }, }); } diff --git a/services/api/anime/getAnimeInfo.tsx b/services/api/anime/getAnimeInfo.tsx index 55be42c2..698973e0 100644 --- a/services/api/anime/getAnimeInfo.tsx +++ b/services/api/anime/getAnimeInfo.tsx @@ -1,6 +1,5 @@ import { BaseFetchRequestProps, - FetchRequestProps, fetchRequest, } from '@/services/api/fetchRequest'; @@ -18,10 +17,5 @@ export default async function req({ ...props, path: `/anime/${params?.slug}`, method: 'get', - config: { - next: { - revalidate: 60, - }, - }, }); } diff --git a/services/api/characters/getCharacterAnime.tsx b/services/api/characters/getCharacterAnime.tsx index 6485206d..a8bacb46 100644 --- a/services/api/characters/getCharacterAnime.tsx +++ b/services/api/characters/getCharacterAnime.tsx @@ -26,10 +26,5 @@ export default async function req({ method: 'get', page, size, - config: { - next: { - revalidate: 60, - }, - }, }); } diff --git a/services/api/characters/getCharacterInfo.tsx b/services/api/characters/getCharacterInfo.tsx index e3c06f0f..d7e645a0 100644 --- a/services/api/characters/getCharacterInfo.tsx +++ b/services/api/characters/getCharacterInfo.tsx @@ -1,6 +1,5 @@ import { BaseFetchRequestProps, - FetchRequestProps, fetchRequest, } from '@/services/api/fetchRequest'; @@ -18,10 +17,5 @@ export default async function req({ ...props, path: `/characters/${params?.slug}`, method: 'get', - config: { - next: { - revalidate: 60, - }, - }, }); } diff --git a/services/api/characters/getCharacters.tsx b/services/api/characters/getCharacters.tsx index a7e7f247..c6183129 100644 --- a/services/api/characters/getCharacters.tsx +++ b/services/api/characters/getCharacters.tsx @@ -20,10 +20,5 @@ export default async function req({ method: 'post', page, size, - config: { - next: { - revalidate: 60, - }, - }, }); } diff --git a/services/api/fetchRequest.ts b/services/api/fetchRequest.ts index 0682d575..a00edd56 100644 --- a/services/api/fetchRequest.ts +++ b/services/api/fetchRequest.ts @@ -61,6 +61,7 @@ export async function fetchRequest({ ? (params as FormData) : JSON.stringify(params) : undefined, + cache: 'no-store', ...config.config, ...myConfig, headers: { diff --git a/services/api/people/getPeople.tsx b/services/api/people/getPeople.tsx index 52fea6bf..46ecc92e 100644 --- a/services/api/people/getPeople.tsx +++ b/services/api/people/getPeople.tsx @@ -1,6 +1,5 @@ import { BaseFetchRequestProps, - FetchRequestProps, fetchRequest, } from '@/services/api/fetchRequest'; @@ -21,10 +20,5 @@ export default async function req({ method: 'post', page, size, - config: { - next: { - revalidate: 60, - }, - }, }); } diff --git a/services/api/people/getPersonAnime.tsx b/services/api/people/getPersonAnime.tsx index 400ea263..44c1a878 100644 --- a/services/api/people/getPersonAnime.tsx +++ b/services/api/people/getPersonAnime.tsx @@ -1,6 +1,5 @@ import { BaseFetchRequestProps, - FetchRequestProps, fetchRequest, } from '@/services/api/fetchRequest'; @@ -30,10 +29,5 @@ export default async function req({ method: 'get', page, size, - config: { - next: { - revalidate: 60, - }, - }, }); } diff --git a/services/api/people/getPersonCharacters.tsx b/services/api/people/getPersonCharacters.tsx index 9a2a0fae..978e5354 100644 --- a/services/api/people/getPersonCharacters.tsx +++ b/services/api/people/getPersonCharacters.tsx @@ -1,6 +1,5 @@ import { BaseFetchRequestProps, - FetchRequestProps, fetchRequest, } from '@/services/api/fetchRequest'; @@ -28,10 +27,5 @@ export default async function req({ method: 'get', page, size, - config: { - next: { - revalidate: 60, - }, - }, }); } diff --git a/services/api/people/getPersonInfo.tsx b/services/api/people/getPersonInfo.tsx index 27dfc69a..0875f7c7 100644 --- a/services/api/people/getPersonInfo.tsx +++ b/services/api/people/getPersonInfo.tsx @@ -1,6 +1,5 @@ import { BaseFetchRequestProps, - FetchRequestProps, fetchRequest, } from '@/services/api/fetchRequest'; @@ -18,10 +17,5 @@ export default async function req({ ...props, path: `/people/${params?.slug}`, method: 'get', - config: { - next: { - revalidate: 60, - }, - }, }); }