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 matching export in "node_modules/better-auth/dist/adapters/index.mjs"

Im getting a couple of error messages I cant comprehend, while trying to add convex better auth to my react vite project . Does anybody know whats going on ? (see screenshots)...
No description

Ffmpeg support?

Can I use ffmpeg static + fluent in Convex actions? Will I run into any OS/deps issues?

Import storage files from dev to prod with same IDs

Hi everyone, is there the possibility to take all my storage files in a dev deployment and import them to prod with the same IDs? I have already imported all my tables, but I can't find a way to match the storage IDs. I can re-upload the files to prod, but they will get different IDs, right?...

custom domain hosted on vercel

Hi, i have a Nextjs site using convex as the backend, i purchased a domain on vercel, and i entered the dns info from convex in order to have my api accessible through my own domain, its already over 24 hours and its still pending verification, i checked with "dig" and the dns info already propagated right after entering but for some reason convex is not verifying it and i cant use my site.

Issues with limits/timeouts doing cron jobs on large datasets; infrequent aggregates of data

Hi, does anyone have a good solution for doing bulk data operations within Convex cron jobs? I keep running into either data query limits or action timeouts. I have a table closing in on 1 million rows on which I want to run weekly-ish updates and store the aggregates results in another table (like 20 rows, that's the easy part). At the moment I was able to group by a field in the data, reducing the data set to maybe 50-100k rows and run the aggregates on that smaller dataset but I just keep running into limits or timeouts. The aggregates can be slow to compute, that's no problem, the cron jobs just need to be stable. Is there maybe a way to offload it somewhere outside of a "regular" action?...

Convex self hosted using azure?

Hello, I have a selfhosted convex deployment on azure and have connected it to a postgresql server on azure too. I also want to use azure blob storage instead of s3. Is this possible?

Convex Autumn Svelte

Hey, has anyone already integrated the autumn component in a svelte project? I‘d love to build a state wrapper library

How to use preload query with authentication

I am referring to this documentation Here are the components: ```tsx import { getAuthToken } from "@/lib/convex";...

I have a large JSON file with objects, what is the best way to get that into an internal action?

Specifically I have a JSON file where I maintain a list of Google's supported canonical locations. The file has more objects in the array than can be committed in one mutation. I want some way to get this large JSON array into an internalAction I can call to have it insert or patch documents in my locations table. I've attempted multiple things so far:...

INFINITE loading state

I'm working on a project and I got stuck into an infinite loading state where the promise is never resolved. I went to the convex dashboard to run the function and worked, but here simply doesn't return anything. I don't have errors anywhere
No description

Relative import path not prefixed with / or ./ or ../ from - Convex function

Hi, I'm quite new to convex so I apologise if I've missed something here. However, when I attempt to send an email inside a convex function using resend I get an error like this:
# SERVER_ERROR: [Error: Relative import path "@react-email/render" not prefixed with / or ./ or ../ from "convex:/_deps/S5LTQZFU.js"]
# SERVER_ERROR: [Error: Relative import path "@react-email/render" not prefixed with / or ./ or ../ from "convex:/_deps/S5LTQZFU.js"]
...

Help with query

```ts import { query } from "./_generated/server"; export const getAllUsersWithSubscriptions = query({...

Document ID validation in security

Hi Convex community. I know that Convex provides v.id(“table_name”) validator. However, I want to be very clear about the behaviour of this validator. Suppose I have a mutation api that allows caller to mutate a document by supplying the document ID. Can I trust that the user-supplied document ID truly refers to the document in the expected table? Can a malicious user supplies a document ID of a document from another arbitrary data table? ...

Uploadstuff Maintenance?

Hi, I am playing around with files and uploading with the uploadstuff package from the get-convex repository here https://github.com/get-convex/uploadstuff but it breaks from the official npm package install due to outdated dependance's. There is a pull request over a month old that foxes this issue so was wondering if that would be action any time soon or if this is just a dead side project that is not going to be updated going forward? if thats the case can you say that on the repository or pu...

Better-Auth unusable

I'm trying to setup convex with better-auth but it's been such a pain to setup such an easy library as better-auth. Bun version: 1.3 Rslib version: 1.5.17 Packages and versions:...
No description

BetterAuth Uncaught TypeError: dynamic module import unsupported

Im getting the following error with BetterAuth ``` 20/10/2025, 21:40:20 [CONVEX Q(user/queries:currentUser)] [WARN] '[better-auth] Warning: AsyncLocalStorage is not available in this environment. Some features may not work as expected.' ...

Convex Mutation & Action Chaining

Guys I would like to create a function that checks if the user has a stripeID in the db, if not create a stripeID and store it in the db. After use the ID to add a new card to the users account. I've attached the code below given I am not sure if I am following the best practices....

Hi. Is the backup functionality down for Convex?

I am trying to create a backup in convex production side from the dashboard. Yesterday it took a couple seconds only. But now trying again its been running for a long time but to no avail. Help please.
No description

Chef not working. It won't work when I prompt him.

I have my own google ai studio api key. no other api keys. Then I launch pnpm run dev like in the video and npx convex dev. Convex launches in browser. (btw I cloned the github repo to launch everything). So then I prompt it and it gives me this error: (the pic) but I do not get anything red in the terminal.
No description

Support for overlap date range queries (w/start + end fields)

Hi there, To my understanding, there is no way to to query entities (e.g. a booking {start:isostring, end:isostring}) that have both start and end fields by a date range that isn't at risk of hitting the convex document limit, not by the documents within the date range, but by the nature of the amount of documents I have to scan so I can return a valid result due to how convex allows you to query the db. - Where the risk is: writing a convex query to get all bookings that start before start AND end after end could likely exceed the 16k limit....