Add support for Cloudflare vinext - #1
Conversation
This change updates the Payload CMS Next.js plugin and Admin UI dependency checker to support `vinext`, Cloudflare's Vite-based port of Next.js. - `getNextjsVersion` now falls back to checking `vinext/package.json` if `next/package.json` cannot be resolved. - Admin UI `checkDependencies` logic now includes `vinext` as an allowed but optional dependency, preventing dependency mismatch errors when using `vinext`. - Added a basic test suite for `withPayload.utils`. Co-authored-by: matbrgz <23284276+matbrgz@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This change updates the Payload CMS Next.js plugin and Admin UI dependency checker to support `vinext`, Cloudflare's Vite-based port of Next.js. - `getNextjsVersion` now falls back to checking `vinext/package.json` if `next/package.json` cannot be resolved. - Admin UI `checkDependencies` logic now includes `vinext` as an allowed but optional dependency, preventing dependency mismatch errors when using `vinext`. - Added a basic test suite for `withPayload.utils`. Co-authored-by: matbrgz <23284276+matbrgz@users.noreply.github.com>
Added fallback checks for
vinextingetNextjsVersion(packages/next/src/withPayload/withPayload.utils.js) and addedvinextto the list of checked dependencies incheckDependencies(packages/next/src/layouts/Root/checkDependencies.ts). Also addedwithPayload.utils.spec.tstest suite.PR created automatically by Jules for task 680532266732435126 started by @matbrgz