Skip to content

ci: deploy Convex functions during Vercel production builds - #29

Merged
ItamarShDev merged 1 commit into
mainfrom
devin/1788987148-vercel-convex-deploy
Sep 9, 2026
Merged

ItamarShDev merged 1 commit into
mainfrom
devin/1788987148-vercel-convex-deploy

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

Merging #27 didn't change the live site because Vercel only ran vite build; the Convex functions stayed on the old status=SCHEDULED query until deployed by hand tonight.

vercel.json now runs bunx convex deploy --cmd 'bun run build' for production builds only (VERCEL_ENV=production), so every merge to main pushes the Convex functions together with the frontend. Preview builds keep plain bun run build so they don't need a deploy key and don't touch prod Convex.

Required setup (manual): add CONVEX_DEPLOY_KEY (production deploy key from the Convex dashboard) to Vercel → Settings → Environment Variables, Production scope only. Without it the production build will fail.

Link to Devin session: https://app.devin.ai/sessions/6c10904043a049198f4f8f9c25167d82
Open in Devin Desktop: https://app.devin.ai/desktop/session/6c10904043a049198f4f8f9c25167d82?variant=devin
Requested by: @ItamarShDev

Co-Authored-By: Itamar Sharify <itamarsharify@gmail.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

Original prompt from Itamar

@ItamarShDev/hakapit site still not showing current match only next one

There is a game now. Test fast why

@vercel

vercel Bot commented Sep 9, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
hakapit Ready Ready Preview Sep 9, 2026 8:52pm UTC

@ItamarShDev
ItamarShDev marked this pull request as ready for review September 9, 2026 20:53
Copilot AI lite review requested due to automatic review settings September 9, 2026 20:53

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@ItamarShDev
ItamarShDev merged commit a904103 into main Sep 9, 2026
4 checks passed

Copilot AI 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.

🟢 Approval recommended

No unresolved review issues were identified.

Pull request overview

Updates Vercel production builds to deploy Convex functions before building the frontend, while keeping preview builds unchanged.

Changes:

  • Deploys Convex functions during production builds.
  • Preserves plain bun run build for previews.
File summaries
File Description
vercel.json Configures environment-specific Vercel build behavior.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

This branch was successfully deployed

1 active deployment
Preview 80d9e6fd Deployed Sep 9, 2026 by vercel[bot]
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.

2 participants