Adonis Nextjs 🚀
A provider to initialize nextjs app with adonis.
Installation
You can install the package from npm.
this provider assume you have nextjs, React & React Dom
adonis install adonis-nextjs
Configure
Register provider
The provider must be registered as a provider
.
const providers = ...'adonis-nextjs/providers/NextProvider';
Register your routes
const Route = ;const Next = ;const handler = Next; // API Endpoint for your databaseRoute; // * Next RoutesRoute; Route; Route;
Adding next.js folder
The next project directory is next
by default, but you can change it using environment variables NEXT_FOLDER
.
Register next.js Commands
Release History
Checkout CHANGELOG.md file for release history.
Meta
Checkout LICENSE for license information.