In next.js 13 i have an error TS: Argument of type
{ method: "GET"; url: string; cache: string; params: any; }
is not assignable to parameter of type string | Options
can you add for nextjs 13 cache and next support:
1 fetch('https://...', { cache: 'force-cache' }) // force-cach | no-store
2 fetch('https://...', { next: { revalidate: 3600 } })
3 fetch('https://...', { next: { tags: ['collection'] } })
https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating#fetching-data-on-the-server-with-fetch
In next.js 13 i have an error TS: Argument of type
{ method: "GET"; url: string; cache: string; params: any; }
is not assignable to parameter of type string | Options
can you add for nextjs 13 cache and next support:
1 fetch('https://...', { cache: 'force-cache' }) // force-cach | no-store
2 fetch('https://...', { next: { revalidate: 3600 } })
3 fetch('https://...', { next: { tags: ['collection'] } })
https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating#fetching-data-on-the-server-with-fetch