
Monorepo - Remix and PayloadCMS
This article provides a guide on how to set up Payload CMS with Remix in a monorepo structure. It explains how to divide each application into its own package, including the express server app. The article also discusses how to inject the Payload instance into Remix loaders and actions through the request context, allowing the use of the Payload Local API for data, user, and authentication management without bundling Payload together with the Remix server build.
This article provides a detailed guide on setting up Payload CMS with Remix in a monorepo structure. It emphasizes the division of applications into separate packages and the use of context injection for integrating Payload with Remix. The article also highlights the use of pnpm for package management, TypeScript for static type checking, and Turborepo for running builds and scripts. Additionally, it suggests using Nodemon for running the express server during development with automatic reloading.
