Skip to content

chore(repo): ignore .vercel and drop the stale npm lockfile#39

Draft
macanderson wants to merge 1 commit into
mainfrom
fix/vercel-autodeploy
Draft

chore(repo): ignore .vercel and drop the stale npm lockfile#39
macanderson wants to merge 1 commit into
mainfrom
fix/vercel-autodeploy

Conversation

@macanderson

@macanderson macanderson commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Follow-up housekeeping from wiring this repo to Vercel for git-driven deploys.

Not required for auto-deploy. Auto-deploy is already live and verified on main — this PR is optional hygiene.

Changes

  • .gitignore: add .vercel — the project is now linked, so vercel link/vercel writes a .vercel/ directory into every checkout. Ignore it instead of committing project/org IDs.
  • Delete site/package-lock.jsonsite/ carried both an npm and a pnpm lockfile.

Why the lockfile matters

Vercel resolves the two-lockfile ambiguity in pnpm's favour (Detected pnpm-lock.yaml 9 … Using pnpm@10.x). A local npm install does not: npm's flat node_modules hoists @types/mdx up from fumadocs, so mdx/types resolves locally even when it is undeclared.

That is precisely what masked the bug fixed in #36 — the site type-checked locally and failed on Vercel with Cannot find module 'mdx/types'. Keeping pnpm as the single source of truth makes a clean local install match the build image.

Verification

  • pnpm install --frozen-lockfile, then pnpm build (16 routes prerendered) and pnpm test (5/5) from a clean worktree with package-lock.json removed.
  • The push of this branch auto-triggered a git-sourced preview deployment that reached Ready with no manual step.

The Vercel project is now linked to this repo for git-driven deploys, so
`vercel link` writes a `.vercel/` directory into every checkout. Ignore it
rather than committing project/org IDs.

`site/` also carried both `package-lock.json` and `pnpm-lock.yaml`. Vercel
resolves the ambiguity in pnpm's favour, but a local `npm install` does not:
npm's flat node_modules hoists `@types/mdx` up from fumadocs, which is exactly
what masked the missing `@types/mdx` declaration fixed in #36 — the site built
locally and failed type checking on Vercel. Keep pnpm as the single source of
truth so a clean local install matches the build image.

@sourcery-ai sourcery-ai 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.

Sorry @macanderson, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
context-graph-protocol Ready Ready Preview, Comment Jul 22, 2026 12:42am

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