From 8eaf93f5d9878f2d8f01cf40c3609db9ccd602a8 Mon Sep 17 00:00:00 2001 From: ozpool <151670776+ozpool@users.noreply.github.com> Date: Wed, 6 May 2026 18:50:37 +0530 Subject: [PATCH] deploy(web): vercel.json for pnpm monorepo build 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'). --- .gitignore | 1 + apps/web/.gitignore | 1 + apps/web/vercel.json | 7 +++++++ 3 files changed, 9 insertions(+) create mode 100644 apps/web/vercel.json diff --git a/.gitignore b/.gitignore index 6e231d8..12ac683 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,4 @@ Thumbs.db # Coverage coverage/ lcov.info +.vercel diff --git a/apps/web/.gitignore b/apps/web/.gitignore index 7d9c390..f00930c 100644 --- a/apps/web/.gitignore +++ b/apps/web/.gitignore @@ -6,3 +6,4 @@ out .env.*.local *.tsbuildinfo next-env.d.ts +.vercel diff --git a/apps/web/vercel.json b/apps/web/vercel.json new file mode 100644 index 0000000..9960ffe --- /dev/null +++ b/apps/web/vercel.json @@ -0,0 +1,7 @@ +{ + "$schema": "https://openapi.vercel.sh/vercel.json", + "framework": "nextjs", + "buildCommand": "cd ../.. && pnpm --filter @prism/web build", + "installCommand": "cd ../.. && pnpm install --frozen-lockfile", + "outputDirectory": ".next" +}