Skip to content

chore: add pnpm install and build commands to vercel.json#4375

Open
faizkhairi wants to merge 2 commits intonusmodifications:masterfrom
faizkhairi:fix/vercel-pnpm-config
Open

chore: add pnpm install and build commands to vercel.json#4375
faizkhairi wants to merge 2 commits intonusmodifications:masterfrom
faizkhairi:fix/vercel-pnpm-config

Conversation

@faizkhairi
Copy link
Copy Markdown

@faizkhairi faizkhairi commented Mar 24, 2026

Summary

  • Add installCommand and buildCommand to the existing website/vercel.json to configure pnpm as the package manager for Vercel builds, replacing the CRA defaults
  • Existing functions, headers, rewrites, redirects, and ignoreCommand are preserved unchanged

Related Issue

Closes #4370

Test Plan

  • Verify Vercel preview build uses pnpm for install and build
  • Verify existing API proxy, redirects, and cache headers still work
  • Confirm no regression in production deployment

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Mar 24, 2026

PR author is not in the allowed authors list.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 24, 2026

@faizkhairi is attempting to deploy a commit to the modsbot's projects Team on Vercel.

A member of the Team first needs to authorize it.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.39%. Comparing base (988c6fd) to head (54870ab).
⚠️ Report is 220 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4375      +/-   ##
==========================================
+ Coverage   54.52%   56.39%   +1.87%     
==========================================
  Files         274      308      +34     
  Lines        6076     6963     +887     
  Branches     1455     1680     +225     
==========================================
+ Hits         3313     3927     +614     
- Misses       2763     3036     +273     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@faizkhairi faizkhairi force-pushed the fix/vercel-pnpm-config branch from 74333de to e903ab9 Compare March 24, 2026 17:08
Add installCommand and buildCommand to the existing vercel.json
to configure pnpm as the package manager for Vercel builds,
replacing the CRA defaults.

Existing functions, headers, rewrites, redirects, and ignoreCommand
are preserved unchanged.
@faizkhairi faizkhairi force-pushed the fix/vercel-pnpm-config branch from e903ab9 to 0a70772 Compare March 24, 2026 17:13
@faizkhairi faizkhairi changed the title chore: configure pnpm as Vercel build command in website/vercel.json chore: add pnpm install and build commands to vercel.json Mar 24, 2026
Vercel's auto-detection uses --frozen-lockfile by default.
Explicit installCommand without it would regress that behavior.
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.

Configure vercel build to use pnpm

1 participant