Product ReleaseMay 29, 2026

convex v1.39.0

convex v1.39.0
Ian Macartney

Ian Macartney

Published on May 29, 2026

Overview

  • Apps and components may now declare typesafe env vars that they require. Both defineApp and defineComponent now accept an env object with string keys and validator values. Declared environment variables must be present and match the validators before deployment.
  • Allow --local-cloud-port, --local-site-port, --local-backend-version and --local-force-upgrade options to npx convex dev to be used whenever using a local deployment.
  • The AsyncLocalStorage and AsyncResource APIs from node:async_hooks are now available in the standard Convex runtime. Note that stored values will not be threaded through calls to ctx.runQuery/ctx.runMutation/ctx.runAction.

Included Features (1)

#248
Better environment variable support

Improve environment variable management with stronger validation, safer rollout ergonomics, and clearer scoping across local, preview, staging, and production.

377(9)
Completed