Skip to content

Add support for Cloudflare vinext - #1

Merged
matbrgz merged 2 commits into
mainfrom
feat/vinext-support-680532266732435126
Mar 10, 2026
Merged

matbrgz merged 2 commits into
mainfrom
feat/vinext-support-680532266732435126

Conversation

@matbrgz

@matbrgz matbrgz commented Mar 10, 2026

Copy link
Copy Markdown
Collaborator

Added fallback checks for vinext in getNextjsVersion (packages/next/src/withPayload/withPayload.utils.js) and added vinext to the list of checked dependencies in checkDependencies (packages/next/src/layouts/Root/checkDependencies.ts). Also added withPayload.utils.spec.ts test suite.


PR created automatically by Jules for task 680532266732435126 started by @matbrgz

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>
@google-labs-jules

Copy link
Copy Markdown

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

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>
@matbrgz
matbrgz merged commit 2d7c007 into main Mar 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant