Announcing Convex 1.5
📢 Convex has Preview Deployments 🌈 @everyone
🥁 Introducing Convex 1.5:
🚀 Preview Deployments (BETA) :
Test your frontend & backend together with a per-branch Convex backend paired with your Vercel or Netlify preview. Requires Convex Pro.
⚙️ Configure project-wide environment variable defaults, making it easier for new developers or preview deploys to start up seamlessly.
🐿️ Dynamic Imports: The Convex runtime now supports dynamic imports (
await import(..)
) in actions, which helps support squirrelly npm packages like LangChain.
Full release notes here: https://news.convex.dev/announcing-convex-1-5/Convex News
Announcing Convex 1.5
Convex 1.5 adds support for preview deployments, improvements to the Convex runtime, and more.
3 Replies
Amazing, great work y'all!!
I'm guessing it's possible to use without Netlify or Vercel (I'm developing for iOS currently and use GitHub Actions direct) - is that the case? Docs for direct use would be awesome!
Yeah can definitely add some more docs here. But to attempt to give an answer here, the key command is
npx convex deploy —cmd “<command to build UI>”
run with the CONVEX_DEPLOY_KEY env variable set to a preview deploy key for your project (found in the dashboard under project settings). This command will claim a Convex deployment for the given name (git branch name should be inferred for GitHub actions, or this can be provided explicitly with the —preview-name option). It executes the command provided with —cmd, with CONVEX_URL (or similarly named, inferred based on frontend framework) set to point at the Convex preview backend. And lastly the command pushes functions to this backend (and runs the —preview-run function if provided). I think a good chunk of this shows up under npx convex deploy —help
but I’ll also update our docs! (also apologies for any mistakes in this message — am writing from mobile without easy access to code)This is perfect, thank you!