chore: add pnpm install and build commands to vercel.json#4375
chore: add pnpm install and build commands to vercel.json#4375faizkhairi wants to merge 3 commits into
Conversation
|
@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 Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4375 +/- ##
==========================================
+ Coverage 54.52% 56.39% +1.86%
==========================================
Files 274 317 +43
Lines 6076 6962 +886
Branches 1455 1679 +224
==========================================
+ Hits 3313 3926 +613
- Misses 2763 3036 +273 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
74333de to
e903ab9
Compare
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.
e903ab9 to
0a70772
Compare
Vercel's auto-detection uses --frozen-lockfile by default. Explicit installCommand without it would regress that behavior.
|
@greptile |
Confidence Score: 5/5Safe to merge — the change is a two-line addition to a JSON config file with no effect on application logic. Both commands are straightforward: No files require special attention.
|
| Filename | Overview |
|---|---|
| website/vercel.json | Adds installCommand and buildCommand to wire pnpm as the package manager for Vercel builds; all existing configuration is preserved. |
Sequence Diagram
sequenceDiagram
participant V as Vercel CI
participant R as Repo Root
participant W as website/
V->>R: git clone (full repo)
V->>W: cd website/ (root dir)
V->>R: pnpm install --frozen-lockfile
R-->>V: all workspace deps installed
V->>W: pnpm build
W-->>V: "pnpm prepare:optimiser && node scripts/build"
V->>V: deploy static output + serverless functions
Reviews (1): Last reviewed commit: "Merge branch 'master' into fix/vercel-pn..." | Re-trigger Greptile
Summary
installCommandandbuildCommandto the existingwebsite/vercel.jsonto configure pnpm as the package manager for Vercel builds, replacing the CRA defaultsRelated Issue
Closes #4370
Test Plan