Vite plugin for running Payload CMS (v3.82+) on Cloudflare Workers via vinext, a Vite-based Next.js reimplementation. Current version 0.0.19, experimental. Provides two modes: payloadPlugin() for full Payload with admin UI and REST/GraphQL (requires vinext), and payloadWorkerPlugin() for headless Payload exposing Local API via WorkerEntrypoint RPC (no admin UI, works with any Vite frontend). Key differentiator: enables Payload deployments on Cloudflare Workers with RSC support, reducing cold starts and edge latency. Requires Node >=24, Vite ^8.0.0 (Rolldown). Peer deps pinned to validated stack (Payload 3.84.1, vinext 0.0.50). Includes migration tooling from Next.js and Cloudflare D1 support. Actively developed by Block65.
npm install vite-plugin-vinext-payloadNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic setup for Payload CMS with full admin UI on Cloudflare Workers using vinext.
Upgrade Node to v24 or later.
Update Vite to ^8.0.0, or use --legacy-peer-deps (not recommended).
Update Payload CMS to v3.82 or later.
Pin to exact version and monitor releases.
Run `npm install -D vinext vite` and add vinext() to the Vite config.
Run `npx vite-plugin-vinext-payload init --dry-run` to preview changes.
Install vinext: npm install -D vinext
Use --legacy-peer-deps during install, or align versions manually.
Upgrade Node to v24 or later.
Use import { payloadPlugin } from 'vite-plugin-vinext-payload'