Skip to content

Fix Vercel build: convert repo to pnpm workspace#2

Open
SomethingNew71 wants to merge 1 commit into
mainfrom
fix/vercel-build
Open

Fix Vercel build: convert repo to pnpm workspace#2
SomethingNew71 wants to merge 1 commit into
mainfrom
fix/vercel-build

Conversation

@SomethingNew71

Copy link
Copy Markdown
Contributor

Summary

  • Vercel's build was failing with nuxt: command not found because pnpm install at the repo root only installed the root's lone devDependency (concurrently). The build script then did cd frontend && pnpm build against a project that had no node_modules.
  • Added pnpm-workspace.yaml listing frontend. Now a single root pnpm install resolves and installs the frontend's dependencies too, so the existing pnpm build works on Vercel without touching Vercel settings.
  • Lockfile regenerated as a workspace lockfile (now contains both importers: . and frontend).

Sidecar (Python) is intentionally not part of the workspace — it has no package.json and isn't deployed to Vercel.

Test plan

  • pnpm install at repo root pulls frontend deps
  • pnpm run build produces frontend/.output successfully
  • Vercel build succeeds on this branch's preview deploy

Vercel runs `pnpm install` at the repo root, which previously only
installed `concurrently` (the sole root devDependency). The build
script then `cd frontend && pnpm build`'d into a project with no
node_modules, failing with `nuxt: command not found`.

Adding a pnpm-workspace.yaml that includes `frontend` makes the root
install pull in the frontend's deps, so the existing build script
works on Vercel without changes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented May 6, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
wireviz-gui Error Error May 6, 2026 1:50pm

Request Review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request initializes a pnpm workspace by creating the pnpm-workspace.yaml file and defining the frontend directory as a workspace package. There are no review comments to address, and I have no further feedback to provide.

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.

1 participant