Skip to content

Backport of ui: fix Vercel build — explicit config, drop public flag, relax pnpm engine constraint into release/2.0.x - #23745

Merged
suresh-hashicorp merged 1 commit into
release/2.0.xfrom
backport/suresh/ui/fix-vercel-build/notably-happy-cub
Jul 18, 2026
Merged

Backport of ui: fix Vercel build — explicit config, drop public flag, relax pnpm engine constraint into release/2.0.x#23745
suresh-hashicorp merged 1 commit into
release/2.0.xfrom
backport/suresh/ui/fix-vercel-build/notably-happy-cub

Conversation

@hc-github-team-consul-core

Copy link
Copy Markdown
Collaborator

Backport

This PR is auto-generated from #23743 to be assessed for backporting due to the inclusion of the label backport/2.0.

The below text is copied from the body of the original PR.


Description

Isolates the Vercel build fixes from #23707 into a standalone PR targeting main.

Three files changed, all under ui/:

ui/vercel.json

  • Add $schema for editor/validator support
  • Remove unsupported "public": true flag (caused Vercel deploy errors)
  • Add explicit installCommand: pnpm install --no-frozen-lockfile
    --no-frozen-lockfile avoids install failures when Vercel's Node environment
    produces a different lockfile hash than the one committed
  • Add explicit buildCommand: make dist-vercel
  • Add explicit outputDirectory: dist

ui/package.json

  • Relax engines.pnpm from ">= 10.*" to ">= 9" so Vercel's bundled
    pnpm 9 satisfies the constraint without requiring a global install step

ui/README.md

  • Add one-line note pointing to ./vercel.json for Vercel preview deployment config

Testing & Reproduction steps

Vercel preview deployment on a branch should now complete without:

  • ERR_INVALID_ARG_TYPE / unsupported config key errors (public)
  • ERR_PNPM_FROZEN_LOCKFILE failures
  • pnpm engine version mismatch errors

Links

PR Checklist

  • not a security concern
  • updated test coverage (n/a — config-only change)
  • external facing docs updated (n/a)
  • appropriate backport labels added

Overview of commits

@suresh-hashicorp
suresh-hashicorp merged commit b00cead into release/2.0.x Jul 18, 2026
71 of 72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

theme/ui Anything related to the UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants