This is a Next.js project bootstrapped with create-next-app
.
This is an example of how to run adminjs in next.js project and successfully deploy to vercel
First, run the development server:
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
To prevent AdminJS from attempting to generate a new bundle on server startup, you must set
ADMIN_JS_SKIP_BUNDLE=true
environment variable!