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

Dashboard feature requests ux

Tonight having multiple deployments on vercel linking back to multiple projects on convex was a bit much to sort out. 1. Generated name of convex deployment selected up on top so you don't have to go into settings to figure it out. 2. When a preview deployment is deleted, it should not leave you at a 404 with no way to get back to the dashboard. 3. When you go to enter environment keys a preview deployment should warn you that you should set it in the production env as anything you set here will get overwritten on the next push to vercel. ...

how do i install ssl on my selfhosted docker deploy?

My convex react client wont connect to my selfhosted docker convex backend because i cant use wss because its http

After a query is cached, is calling it again free until its invalidated?

Also how is the cache invalidated, other than changes to the data? Is it on a specific timeframe too ?

file storage on selfhosted? how does this work? do i have to use s3

I am a minor so it inconvenient to access s3. to use file storage do i need to use s3?

Fetching a random subset of documents without having to collect() over the entire set?

Hi team, I'm implementing an app where a core user flow is to be able to answer a subset of questions from a collection of documents I have stored in Convex. Right now, I have it implemented in a way where I fetch ALL of the documents (this can bloat to thousands eventually), and then apply filters related to which questions I'd like to exclude, and then return only a random subset of these documents. This makes my db bandwidth usage skyrocket over time and I'd really like to optimize this. Is there any simpler way to get a random subset of docs from Convex? If not, is there a more efficient way of implementing this in general? I've attached a code snippet below. ```export const getRandomQuestions = query({...

Why no unions as function validators?

The title basically, its a bit annoying to have to wrap stuff in objects

Convex Local Dev Deployments failing

Running Local Dev Deployments with npx convex dev --local --once sets the .env.local to localhost. But Convex cannot connect: ⠴ Fetch failed, is http://127.0.0.1:3210 correct? Retrying... It seems like the local instance isn't running....
No description

Self Hosting

can i used selfhosted convex for a SAAS product?

Multiple deletion issue

i have a table that is hooked with convex triggers & aggregate .component THe error is somewhat related to triggers i think.
No description

Exclude a folder from automatic API generation in Convex?

I would like to exclude a specific folder from automatic API generation. Specifically, I want to have a ./helpers/feature folders to store helper functions that should not be treated as API functions. However, since these helpers are used only by convex, I would like to keep them inside rather than moving them outside convex/. Is there an official way to configure this, like a .convexignore file or some setting in convex.json? It seems like there is a "exclude" array in convex.json but putting my folder path inside the array is not working....

Patching two values in a document causes functions to be re triggered

I have a function called checkGuess which checks the user's guess and returns data relating to their guess. Additionally, it updates a the "level" document in my levels table by adding 1 to times played and adding 1 to correctguesses if they got it right. However, when I add this patch code, it is triggering my original function again that pulls down 5 random levels and is causing the game to loop indefinitely? ```ts export const checkGuess = mutation({ args: { levelId: v.id("levels"), selectedImageId: v.id("images") },...

Auth in scheduled Actions

So I am scheduling an action from a mutation. The action calls an API and updates the DB. I am using clerk for auth along with rls. But when this action runs I am getting errors in logs on cannot write in db checkAuth....

App Disabled: How to Fix Convex Storage Issues

My app stops working and got "Your projects are disabled because the team exceeded Starter plan limits. Decrease your usage or upgrade to re-enable your projects." So I deleted most of my files(now under 300 mb) via "Files" under the convex project, but rechecking the "File Storage" under "Usage" still shows 2.08 gb, and my app still not working. What should I do?
No description

Financial infrastructure provider requires IP whitelisting for API requests

Hi, I'm working on a fintech application using convex as the backend, I need to integrate with a major 3rd party provider, they require IP whitelisting to enable calls to their API. How can I get the IP of my deployment to integrate with their platform, I don't mind if this is part of the paid feature

Convex backend versioning

i am using convex as a backend for a mobile app, and if i update the production convex backend and the mobile is not udpated by users will cause the mobile application to break

Increased incidences of generic failure + warning

I've been seeing greater incidences from my Convex actions and HTTP actions in the last few days of failures with the message Your request couldn't be completed. Try again later. and the warning Client disconnected. The most curious part (to me, anyways) is that in all of these instances the actions/HTTP actions seem to actually be functioning just fine. Even if the action in question is reported as a failure, it nonetheless appears to have behaved as though it succeeded. What do those messages mean? Should I be concerned? It's not clear to me what the pattern is here, it seems fairly unpredictable (although I can reproduce them, sometimes)....

unable to push deployment

I get this bug when trying to push my code to convex ✖ Error: Unable to push deployment config to https://giddy-hyena-745.convex.cloud ✖ Error fetching POST https://giddy-hyena-745.convex.cloud/api/push_config 400 Bad Request: Error: Hit an error while pushing: Uncaught TypeError: Cannot read properties of undefined (reading 'json')...

MCP setup in Cursor not matching guidance.

Newbie here with fresh install. I'm assuming something very recently changed. But when I try to add a new MCP server in Cursor, I don't get the UI for entering details (pic). I get a new mcp.json file. Not sure what to do next. Help?
No description

R2 Store Method

There is a 'store' method in the documents to store files in actions but it's not available in the package.

Tips on sending batch notifications to a large group of users at once?

Hi team, for context - I'm storing user ExpoPushTokens in my users table in Convex. I was reading some of the docs on cron jobs in Convex and was wondering what the recommended approach would be to send daily notifications to a large group of users at once (doesn't have to be at exactly the same time). I was thinking I could make a call to fetch the users table (though I'd probably wanna do this in a paginated manner so I don't fetch too many items at once), get the Expo push tokens that way, and then make batched calls to the Expo service using an internal action. Is this the recommended approach for a use case like this?...