Convex Community

CC

Convex Community

Join the Convex Discord! Explore Convex, the open-source reactive database for app developers.

Join

support-community

show-and-tell

general

self-hosted

announcements

Production Deployment Not Loading NEW Environment Variables (Request ID: 240ef5c77e57d120)

Hello Convex Team, I already exchanged with the AI chatbox, but didn't get anywhere. I am experiencing a critical issue where my production deployment is not loading any new environment variables set in the dashboard. Existing variables work correctly, but any newly added secrets are undefined....

Convex BetterAuth

how do I get the userMetadata by their id using better auth with convex. I mean the user data of the tables controlled by betterauth convex integration.

What is generally a better dev experience Better-Auth or WorkOS?

We have a large NextJS / React code base. We have a fairly large usebase converting from NextAuth. I understand there is not an official Better-Auth package for Convex but it seems like there is a ton of Better-Auth + Convex info and there is this https://github.com/get-convex/better-auth Any advice, gossip experience? ...

Is it possible to create folder in Convex Storage

Hi is it possible to create folders in Convex Storage to keep things organized.

"Did you forget to run `npx convex dev` " ? No I did not!

Hey guys, Very unsure why this is happening. Getting the error could not find public function. I run convex dev, it runs alongisde my front end app in dev constantly, for some reason, its just not "deploying"? Here is my output from running convex dev:...

Connecting Clerk with convex

Hello I have a question does connecting clerk with convex allow for organizations management as well in convex or its only for authentification ? like are we able to access the organizations table for example to check if a user is a member of an organization ?

`AuthProviderDiscoveryFailed` when running `convex dev --local` with Convex Auth

We're using Convex Auth and have no issues with email OTP when using cloud dev deployments However, when trying it against a local convex dev deployment, we run into these issues: ```...

why do i get billed twice each week?

Like the billing seems correct, but why is it not just one invoice/charge?
No description

Environment Variables Not Syncing to Backend Deployment

Hello Convex Support Team, I am experiencing a critical issue where environment variables set in my project's dashboard are not being loaded into my backend functions. The Problem: My application requires a STRIPE_SECRET_KEY to process payments. I have set this variable correctly in the Convex dashboard under Settings -> Environment Variables. However, when my backend action (checkout:createCheckoutSession) runs, the key is not present in process.env. Evidence from Logs:...

how to deal with forms/react hook form and resolvers

how do ya'll deal with resolvers? having a problem in particular a resolver being defined using zod and it not being compatible with the convex type probably because of the "Id" so how do yall deal with this...
No description

NEXT_PUBLIC_CONVEX_URL & preview deployments with Vercel

When I create a preview deployment in Vercel, does Convex set the NEXT_PUBLIC_CONVEX_URL preview environment variable automatically during the build? It doesn't seem to be set dynamically - my Vercel preview deployment isn't connecting to my Convex preview deployment....

@tanstack/react-router-ssr-query cannot work together with convex.

After integrating SSR according to the official example, the page displays blank, but I did not find any meaningful error messages in the console. doc: https://tanstack.com/router/latest/docs/integrations/query ```tsx export function createRouter() { const convex = new ConvexReactClient(import.meta.env.VITE_CONVEX_URL, {...

Upgrading convex-dev/agent to AI SDK v5 :)

Since convex-dev/rag got an update to support AI SDK v5, I think it would make sense to get convex-dev/agent upgraded to support AI SDK v5, especially now since GPT-5 is out. What do you guys think?...

Convex and Electron

I have an electron app and have been trying to integrate convex and convex auth (all self hosted on railway) into it. When trying to sign the user into an existing account using the password provider, however, I get this error: Error: [CONVEX A(auth:signIn)] Connection lost while action was in flight Called by client. Any help would be appreciated - let me know if you need more context. Thanks!...

Monorepo with more than one convex project

Is it currently a feasible way to have a turborepo with several convex projects as backends, and still being able to have a unified api and Id and Doc type helpers in the react app?

_generated not found in nested test folders

I am writing my test files in a nested directory, and its unable to find my _generated folder.
No description

Agent does not continue after tool result

Hey, I have an agent set up with a rag-search tool. I am building a multi tenant system so I create my Agent with its tenant-context-tool on demand for each request. ...

Convex Streaming

So I want to build a deep research chatbot using convex as backend, but actions have a time limit of 10 min... So firstly, what do I do to accomplish a deep research task that may take 30 min? And also for streaming it directly to the client via vercel ai sdks UIMessageStream don't I get a time limit issue? Are there any solutions for this?...

Request to support `args` parameter in Convex Migrations

With Convex migrations I can use table indexes to only run the migration on a subset. But I can't find a way to take in an argument for which subset to run it on. So every time I wanna change the customRange query I'm forced to push a change. Here's what I'd like to do:...

Backups hanging

For some reason when I click manual backup on both my production and dev instances, it just hangs and spins... can't cancel it either as it says it hasn't started.