Skip to content

fix(docs): recommend next "latest" instead of "*" for Vercel deployment - #3619

Merged
felipefreitag merged 1 commit into
canaryfrom
worktree-fix-docs-vercel-next-version
Jul 2, 2026
Merged

fix(docs): recommend next "latest" instead of "*" for Vercel deployment#3619
felipefreitag merged 1 commit into
canaryfrom
worktree-fix-docs-vercel-next-version

Conversation

@felipefreitag

@felipefreitag felipefreitag commented Jul 2, 2026

Copy link
Copy Markdown
Member

The deployment docs tell users to add "next": "*" to devDependencies so Vercel's Next.js framework preset detects the project. But @vercel/next treats a * version range as a legacy Next.js project (isLegacyNext checks semver.maxSatisfying against its legacy version list, which * matches) and force-installs next-server@7, so the deploy fails during npm install:

npm error ERESOLVE unable to resolve dependency tree
npm error peer react@"^16.0.0" from next-server@7.0.2-canary.49

"latest" is explicitly exempt from the legacy check, and the root next version is only used for framework detection — the preview app itself builds with the Next version pinned by @react-email/ui — so latest cannot drift out of sync with anything.

Verified with real deployments of a stock create-email project following the docs recipe:

  • "next": "*" → build fails at npm install with the ERESOLVE above
  • "next": "latest" → deploys green and the preview app serves

Related to the deployment issues reported in #3557.


Summary by cubic

Update Vercel deployment docs to use next: "latest" instead of "*". This avoids @vercel/next legacy detection that installs next-server@7 and causes install failures, so deploys succeed.

Written for commit 32d18ed. Summary will update on new commits.

Review in cubic

Vercel's Next builder treats a "*" version range as a legacy Next.js
project and force-installs next-server@7, which fails to resolve
against React 19. "latest" is explicitly exempt from the legacy check.

Verified with real deploys: "*" fails at npm install with ERESOLVE
(peer react@^16 from next-server@7.0.2-canary.49), "latest" deploys
and serves.
@vercel

vercel Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-email Ready Ready Preview, Comment Jul 2, 2026 7:50pm
react-email-demo Ready Ready Preview, Comment Jul 2, 2026 7:50pm

@changeset-bot

changeset-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 32d18ed

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@felipefreitag
felipefreitag merged commit 5fd65d8 into canary Jul 2, 2026
18 of 19 checks passed
@felipefreitag
felipefreitag deleted the worktree-fix-docs-vercel-next-version branch July 2, 2026 19:55
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.

2 participants