We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48228f8 commit 638d492Copy full SHA for 638d492
README.md
@@ -294,6 +294,24 @@ const writeClient = createClient({
294
})
295
```
296
297
+### Next.js App Router
298
+
299
+You can now use the fetch option of the Next.js App Router as CustomRequestInit.
300
+Please refer to the official Next.js documentation as the available options depend on the Next.js Type file.
301
302
+[Functions: fetch \| Next\.js](https://nextjs.org/docs/app/api-reference/functions/fetch)
303
304
+```ts
305
+const response = await client.getList({
306
+ customRequestInit: {
307
+ next: {
308
+ revalidate: 60,
309
+ },
310
311
+ endpoint: "endpoint",
312
+});
313
+```
314
315
# LICENSE
316
317
Apache-2.0
0 commit comments