Skip to content

Commit

Permalink
Merge pull request #57 from microcmsio/version/2.5.0
Browse files Browse the repository at this point in the history
Version/2.5.0
  • Loading branch information
himorishige committed May 31, 2023
2 parents 205ff6a + 638d492 commit 5fcc751
Show file tree
Hide file tree
Showing 5 changed files with 10,007 additions and 91 deletions.
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v14.20.0
v16.20.0
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,24 @@ const writeClient = createClient({
})
```
### Next.js App Router
You can now use the fetch option of the Next.js App Router as CustomRequestInit.
Please refer to the official Next.js documentation as the available options depend on the Next.js Type file.
[Functions: fetch \| Next\.js](https://nextjs.org/docs/app/api-reference/functions/fetch)
```ts
const response = await client.getList({
customRequestInit: {
next: {
revalidate: 60,
},
},
endpoint: "endpoint",
});
```
# LICENSE
Apache-2.0
Loading

0 comments on commit 5fcc751

Please sign in to comment.