Skip to content

deploy(web): vercel.json for pnpm monorepo build#223

Open
ozpool wants to merge 1 commit into
mainfrom
deploy/vercel-config
Open

deploy(web): vercel.json for pnpm monorepo build#223
ozpool wants to merge 1 commit into
mainfrom
deploy/vercel-config

Conversation

@ozpool
Copy link
Copy Markdown
Owner

@ozpool ozpool commented May 6, 2026

Summary

  • Adds `apps/web/vercel.json` so Vercel can build the Next.js app from the pnpm workspace root.
  • buildCommand / installCommand `cd ../..` to the repo root so pnpm sees the `@prism/shared` workspace dep.
  • outputDirectory is `.next` relative to `apps/web` (the Root Directory in Vercel project settings).
  • Requires "Include source files outside of the Root Directory" enabled in the Vercel dashboard so `packages/shared` is uploaded into the build context.
  • Adds `.vercel` to root and `apps/web` gitignores (created by `vercel link`).

Test plan

  • Production deploy succeeded: https://prism-web-coral.vercel.app
  • `/`, `/vaults`, `/vaults/0x5Ab391...E1FB` all return 200
  • Wallet connect via injected (MetaMask) — needs manual browser test
  • WalletConnect modal — gated on `NEXT_PUBLIC_WC_PROJECT_ID` being set in Vercel env

apps/web is the Vercel project root (set in dashboard). buildCommand
and installCommand cd up two to the workspace root so pnpm sees the
@prism/shared workspace dep; outputDirectory is .next relative to
apps/web. 'Include source files outside of the Root Directory' is
required in project settings so packages/shared is uploaded.

Adds .vercel to .gitignore (created by 'vercel link').
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