ci: deploy Convex functions during Vercel production builds - #29
Merged
Merged
Conversation
Co-Authored-By: Itamar Sharify <itamarsharify@gmail.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
Original prompt from Itamar
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
🟢 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 buildfor 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Merging #27 didn't change the live site because Vercel only ran
vite build; the Convex functions stayed on the oldstatus=SCHEDULEDquery until deployed by hand tonight.vercel.jsonnow runsbunx convex deploy --cmd 'bun run build'for production builds only (VERCEL_ENV=production), so every merge tomainpushes the Convex functions together with the frontend. Preview builds keep plainbun run buildso 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