Convex Community

CC

Convex Community

Join the Convex Discord! Explore Convex, the fullstack TypeScript platform for developers and startup founders.

Join

support-community

show-and-tell

general

self-hosted

announcements

Plans to support functions returning delta updates?

I have a question about the use case where you are subscribing to a query that returns a large array of data that changes often. Are there any plans to officially support smartly returning only the changes, rather than the whole array every time? Similar to how Firestore and Realm ( called MongoDB Atlas Device SDKs now) behaves. Thanks!...

How to use redirectTo with Convex Auth with Discord

Discord auth allows you to pass a param called state, but it strips all other params. I could put the redirectTo value in the state param, but then how can I get Convex Auth to see it and redirect to it after authenticating? It seems Convex Auth puts the value of redirectTo into a cookie. This doesn't work for my use case, since I'm having the user initiate authentication from a button in Discord. Looking at the source code, would y'all be OK if I added support for the discord state param containing a value for redirectTo? Perhaps JSON encoded? How can I modify the source code of convex auth and test it out? When I change the node module it doesn't seem to have an effect....

Cannot find module '@convex-dev/sharded-counter/convex.config' or its corresponding type declaration

Hi all! I got the following lint error in my typescript project when using the sharded-counter component: Cannot find module '@convex-dev/sharded-counter/convex.config' or its corresponding type declarations.ts(2307) ...

cant manage to make worker pool enqueued action execute

hello, enqued action are always in pending start state in the database. Seems scheduler is not executing them. i made everything like its done in the tutorial i think there is a bug with work pools in convex
{"component":"workpool","event":"enqueued","workId":"jx77pefgevckvvy90tgvf9psf97e8nmm","fnName":"telegram/telegram_workpool:sendMessageAction","runAt":1744953521376,"enqueuedAt":1744953521381}
{"component":"workpool","event":"enqueued","workId":"jx77pefgevckvvy90tgvf9psf97e8nmm","fnName":"telegram/telegram_workpool:sendMessageAction","runAt":1744953521376,"enqueuedAt":1744953521381}
...
No description

Object has too many fields when importing values with nested objects

I have a complex object structure defined as my schema, and one of the column values is a mapping from city names to numbers. Sometimes there are a lot in there so I end up exceeding the maximum number limit. any suggestions on how to work around this? My immediate thought would be to JSON.stringify the complex columns and store as a string to deserialize on the client......

How can I properly store Tiptap's deeply nested JSON editor content in a table?

I have rich text editor that outputs json formated data, the more formating the crazier the json. Should i keep doing this? Im getting warning of deep nesting at level 16 ```{ content: [...
No description

Auth Provider Discovery Failed

Has anyone recieved this error while self-hosting? I am using coolify to host convex and my front-end is a next.js app. Everything has been working with my app before when I was using convex cloud but I wanted to try self hosting instead and now I keep getting this error when trying to register/login/check if a user is authenticated. I obscured the url for security reasons. Any ideas would be great! Returning false from isAuthenticated because Error: {"code":"AuthProviderDiscoveryFailed","message":"Auth provider discovery of https://%2A%2A%2A%2A%2A/http failed: 404 Not Found...

Local Dev Deployment - Offline

Hello, I am looking for ways to be able to develop my app locally without internet connection. I was looking into the Local Deployment for Dev (npx convex dev --local), but when I turn offline it gives an error. Is there a flag or an a way to use local deployment offline, or is the only way to use convex offline is by self-hosting?

Stuck at "bundling modules for convex's runtime

I dont know what happened everything was working perfectly, I didn't make changes to convex code for my react native expo app, but now npx expo dev, doesn't work properly. I have attached verbose logs. It just stucks at end.

Can u any help me fixing this network error?

I have tried uninstall and resinstall convex and also I have tried login and login nothing fixing it . Im using arch linux, manjaro os latest....
No description

One to one relationships vs returning partial records

Is there a performance or cost benefit to separating data into multiple tables with one to one relationships vs storing all the data into one table and returning partial records if that’s what you need? Example: Books table with title, author, page count, etc Chapter summaries as a separate 1:1 table (bookId with an index) vs chapter summaries as a field on the books table....

Broken login for nextjs app in turbo-expo-nextjs-clerk-convex-monorepo

Context: I followed the instruction to setup https://github.com/get-convex/turbo-expo-nextjs-clerk-convex-monorepo locally Problem: When I login using google Oauth the page repeatedly refreshes but never redirects to the protected route. I can see a query param being added and removed from the url as the page refreshes. When I close the tab and visit localhost:3000 I am now on the protected page....

Custom Metadata/Extending Schema

Is it possible to extend or add additional metadata/properties on the schema? We keep a few extra properties on a "schema" like object in our app now, would be nice to just merge the concept. For example it can be something as simple as label for the label that is on the field. Or other things like input_type which may be the type of input control to use. Is it possible to do this and also read the schema in our application?...

Clerk v6 and nextj 15 Not working with convex

I have update my app to nextjs 15 and clerk 6 but on prod the clerk is throwing CORS error `Error: ClerkJS: Network error at "https://clerk.superlinkify.com/v1/environment?__clerk_api_version=2025-04-10&_clerk_js_version=5.61.0" - TypeError: Failed to fetch (clerk.superlinkify.com). Please try again. at r (clerk.browser.js:1:2350) at Object.o [as request] (clerk.browser.js:1:173104)...

Add a query filter for empty value

This is a proposal to make querying for empty values easier. Handling all possible edge cases There should be a query filter to handle possible empty values; in situations where we need to unset a property and filter by this property, this filter should consider all possible falsey value, something similar to lodash's isEmpty https://lodash.com/docs/4.17.15#isEmpty...

Code generated include {` and `}

``tsx //App.tsx {import { InventoryDashboard } from "./components/InventoryDashboard"; import { SignInForm } from "./SignInForm"; import { SignOutButton } from "./SignOutButton";...
No description

Clerk installation failing with convex

I am updating my clerk and nextjs application and getting this error `⠙ Bundling component schemas and implementations... ✘ [ERROR] Could not resolve "node:async_hooks" ...

Recommendation for securely serving files > 20 MB

I've read the docs about serving files from HTTP actions, which allows you to implement access control. What does Convex recommend I do for files larger than 20 MB, if I want access control? Thank you,...

Can we import an existing project

Can we import existing full stack project in to chef?

AI Agent

Hi, I love the new AI Agent feature. Very cool feature! I had a few questions about a particular use-case. 1.) Is it possible to create an agent programmatically, for example a frontend where users can create their own agents which will have their own system prompts, etc... using an action. 2.) Is it possible to upload "training" conversations, create embeddings, and use something like knnfewshot for the agent to get an idea of how they should respond....