Skip to content

Use npm ci for the Vercel install step - #397

Merged
katsuma merged 1 commit into
mainfrom
chore/vercel-npm-ci
Nov 23, 2026
Merged

katsuma merged 1 commit into
mainfrom
chore/vercel-npm-ci

Conversation

@katsuma

@katsuma katsuma commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a vercel.json that sets the Vercel install command to npm ci, so every deployment installs dependencies from a clean node_modules based on package-lock.json.

This is the vercel.json part of #394, split out so it can be merged on its own ahead of the dependency updates.

Why

Vercel restores node_modules from its build cache and runs npm install. npm 11 crashed during that in-place update with ERR_INVALID_ARG_TYPE (The "from" argument must be of type string. Received undefined), which broke a preview deployment of the chore/npm-minor-updates branch on 2026-11-23 (deployment HnYqoQevaiuK5eu2avFEnsDQ4mNX, install step only; production was not affected).

npm ci always starts from a clean node_modules and installs exactly what the lockfile specifies, which avoids the bug and makes installs reproducible.

Notes

Copilot AI balanced review requested due to automatic review settings November 23, 2026 03:16
@vercel

vercel Bot commented Nov 23, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
dining-fm Ready Ready Preview Nov 23, 2026 3:16am UTC

Copilot AI 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.

🟢 Approval recommended

No active review issues are recorded for the Vercel configuration change to use npm ci.

No open issues 🎉

What changed in this PR

Configures Vercel deployments to use clean, lockfile-based dependency installs, separating this deployment safeguard from the dependency updates in #394.

Changes:

  • Sets Vercel’s install command to npm ci to avoid in-place updates to cached node_modules.
  • Adds deployment configuration only; application code and dependencies remain unchanged.
File Description
vercel.json Sets installCommand to npm ci for reproducible dependency installs.

Review effort: Balanced

@katsuma
katsuma merged commit c72eed4 into main Nov 23, 2026
4 checks passed
@katsuma
katsuma deleted the chore/vercel-npm-ci branch November 23, 2026 03:29

This branch was successfully deployed

1 active deployment
Preview — 0a3b8125 Deployed Nov 23, 2026 by vercel[bot]
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