Next.js 13 App Router Payload CMS Monorepo
The Next.js 13 App Router Payload CMS Monorepo is a starter project that combines Next.js, Payload CMS, pnpm, and Turbo monorepo. It provides a seamless integration of Payload CMS with a Next.js application. The admin panel for Payload CMS appears under the Next.js application as /admin, and the Payload API endpoint can be accessed under /api. The project includes various features such as Next.js 13 with App Router and custom Next.js server integration, shared packages for Tailwind CSS, ESLint, and a custom UI kit. It also includes a MongoDB example configuration for easy setup and a configured Storybook installation with a dark theme switcher for Tailwind CSS.
app/server/.env_example file to app/server/.env.node apps/server/generatePayloadSecret.js and update the .env file with the generated key.pnpm install to install dependencies.pnpm dev to start the server and development environment, or pnpm dev:seed to start with a seeded Payload CMS including an admin and guest user.pnpm build followed by pnpm serve.pnpm clean.http://localhost:3000 and http://localhost:3000/admin instead of 127.0.0.1 to prevent CORS errors in Payload CMS admin.The Next.js 13 App Router Payload CMS Monorepo is a powerful starter project that combines the benefits of Next.js, Payload CMS, pnpm, and Turbo monorepo. It provides a seamless integration of Payload CMS with a Next.js application, allowing developers to easily build and manage content-driven websites. The project includes key features such as Next.js 13 with App Router and custom Next.js server integration, shared packages for Tailwind CSS and ESLint, and a configured Storybook installation for UI development. With the MongoDB example configuration and easy installation steps, developers can quickly set up a local environment to start building their applications. Overall, this starter project offers a comprehensive solution for building robust and flexible web applications with Next.js and Payload CMS.