Skip to content

Commit e2ede0e

Browse files
prazgaitisclaude
andcommitted
fix Vercel build command for monorepo convex deploy
- Fix paths assuming Root Directory = apps/web in Vercel dashboard - Use convex deploy for all environments (prod vs preview determined by CONVEX_DEPLOY_KEY scope) - Remove hardcoded outputDirectory (auto-detected by framework setting) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b30ba9a commit e2ede0e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

vercel.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"$schema": "https://openapi.vercel.sh/vercel.json",
3-
"buildCommand": "if [ \"$VERCEL_ENV\" = \"production\" ]; then cd packages/backend && npx convex deploy --cmd 'cd ../.. && pnpm build'; else pnpm build; fi",
3+
"buildCommand": "cd ../../packages/backend && npx convex deploy --cmd 'cd ../.. && pnpm build' --cmd-url-env-var-name NEXT_PUBLIC_CONVEX_URL",
44
"installCommand": "pnpm install",
5-
"framework": "nextjs",
6-
"outputDirectory": "apps/web/.next"
5+
"framework": "nextjs"
76
}

0 commit comments

Comments
 (0)