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

No reactivity

Hello! Is it possible to use queries without the reactivity part? https://docs.convex.dev/functions/query-functions...

Cannot deploy on my first project

I'm running a problem with convex dev command, I check my internet to the given endpoint. Tried to login and logout, Tried to upgrade convex CLI to the latest version npx convex dev Write your Convex functions in convex/...

Better-Auth Nextjs SignUp Issue

Hey there, I am fairly new to convex. I built a small nextjs app with it and am currently trying to get some basic auth working with the better-auth package. After going through the setup guide at https://convex-better-auth.netlify.app/ I am facing the following issue: Every time I try to invoke signUp from the client, using this data: `await authClient.signUp.email(...

Feature request: For Better file management

It would be nice if Convex could ignore folders in brackets—just like Next.js does. Example: If I have a file like: queries/(internal)/analytics/getSales.ts...

Do I need preloading in react-router "data" mode?

Even though convex says that preloading in only for next.js rsc, I am able to use it inside the loader (react-router "data" mode), and I am able to correctly read the data using useLoaderData() and usePreloadedQuery(). Now the question is, does this makes sense? Will it make my page load time faster? Or can I just use useQuery() and forget about preloading?

Convex R2 component not working when imported

When import convex r2 component to convex.config.ts import r2 from '@convex-dev/r2/convex.config'; import shardedCounter from '@convex-dev/sharded-counter/convex.config'; import { defineApp } from 'convex/server'; ...

Force Path Style Support for Docker Container

I am currently trying to use Minio as an S3 backend for Convex for local development. I ran into an issue where all uploads fail because Convex expects the S3 provider to support virtual-hosted-style URL's but Minio in a docker container requires force path styling. This has been a major blocker. It would be nice to have an environment variable flag that would allow convex to use force path styling. I saw there's a closed PR (#122) that adds this, but it was not merged. https://github.com/get-convex/convex-backend/pull/122...

Cursor MCP Convex

Hi there, I'm trying to follow the instructions here https://docs.convex.dev/ai/using-cursor to enable the MCP server but I get a red dot without any errors in Cursor. Has anyone been able to get it to work? I'm on an M1 Mac running the latest version of everything. Cheers!...

Vercel deploy breaks for preview

This week, vercel Preview deployments that were using prod DEPLOY_KEY started to break with:
Detected a non-production build environment and "CONVEX_DEPLOY_KEY" for a production Convex deployment
This is probably unintentional.
Detected a non-production build environment and "CONVEX_DEPLOY_KEY" for a production Convex deployment
This is probably unintentional.
...

Need to jump pages not by _creationTime

I am working on an application that is going to have an extremely long activity ledger (think hundreds of thousands maybe millions of rows eventually). I want users to be able to "browse" the ledger, sort it, and yes page it... The problem comes when there are say 50 or 100 pages + of logs.. Scrolling isn't a great experience at that size and faking pages but then having to load all those records just to "hide" them to give a "jump to page" type experience is also super wasteful to both the client (memeory) and convex servers. What is the work around when serverside collect then slice/skip&take is a bad fit due to volume, and the pagination feature is a bad fit due to User experience or well, also volume....

Is there an API / cli to read/update env vars?

I was wondering if there is a way to programmatically read and set env vars in a convex env. I am working on a way to automate deployment processes for projects with vercel, convex and clerk In convex I couldn’t find any reference on this feature...

Is there any way to speed up the time to authentication?

Right now its very slow to authenticate and the time to first query suffers since everything has to be wrapped in a <Authenticated> check before running the query. Is there any ways to speed this up? I am using JWT auth with a long expiration time so the delay is not coming from hitting the JWT provider.

Manual rollback / error paths in mutations

I’d like to insert specific “error event” documents into the database whenever certain mutations fail. These are used to provide observability to the customer, and not just the developers that can access the db logs. Is there a way to manually rollback on error and continue the mutation in an error path? I understand a possible solution might be to use and action catching the mutation and invoking another mutation on error. Is there any other “mutation only” way? (From what I understand actions are a bit heavier so if possible doing everything in a mutation would be great)...

The possibility of changing the `ctx` to add more data onto it

so, I'm exploring the possibility of passing the ctx.auth.userId and ctx.cache to use in multiple queries in my code. just out of pure curiosity, can I wrap the ctx to serve these data? Also, say if I have a value that I need to fetch only once, and want it to be there across files/folders in my backend, can I export it once and call it from multiple files?...

can convex "hold open" a WebSocket connection indefinitely to listen for events?

Am looking to use a library that requires a persistent, stateful WebSocket connection to another servers to listen for incoming events in real-time. and am not sure if convex, because it is serverless can, be able to do that. is it possible?

Usage above free plan limits

So I got this warning today that my usage is above the free plan limits. The only usage I see that is past the limit is Database bandwidth. How can I decrease the usage for this to avoid the service interruption? Is that even possible?...
No description

Roast of the convex client and authentication.

What I want to achieve without crying out loud: 1. Call an endpoint that checks the cookie and returns the session 2. Use that session cookie when calling fetchAccessToken 3. Authenticate into convex server using the JWT so that i can use ctx.auth....

Type instantiation is excessively deep

Gettign this error on all queies and mutations

Preloading Next.js thread messages and then reading them with useThreadMessages

Hey there, I am trying to preload useThreadMessages using preloadQuery but running into some issues. Preloading in my Next.js page component like: ...

HIPPA and SOC-2 Sub License

I know Convex is HIPPA & SOC-2 compliant as mentioned by @Jamie However, I'll like to know if you can provide sub-license to customers that use Convex. We have a client who needs to know we are compliant before they start using our product. Is it possible to get some kind of documentation / license document that mentions our company name as being compliant by virtue of using Convex?...