Compatibility
Current version is only tested for nextjs v14 (app router)
. Nextjs projects written in javaScript and typescript, both are supported.
Support for nextjs v13 and v15 will roll out sooner.
⚠️
Requirements:
- Next.js ^v14
- TypeScript ^v5
- Zod ^v3
Required
Since next-action-router
uses zod for input validation.
So make sure to install zod in your project.
npm install zod
Install
npm install next-action-router@latest
Now, you're all set to compose actions for your project but before that I encourage you to go though the concepts to get the working understanding of the library abstractions.