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

Integrating convex with clerk

Hi all, I have been able to setup clerk with convex but I was wondering how can I include the private_metadata field of users in the ctx.auth object :dankSpin:...

Is there a way to delete a namespace through RAG component

Hi, I have been looking at the docs, asking the convex AI, I cannot find a way to manually delete the namespace via RAG component through the API. When I run "await rag.add(ctx, { namespace: ..., etc... };" * This should create the RAG data * It runs "await this.getOrCreateNamespace(ctx, { ... });" under the hood...

CONVEX_SITE_URL

Hi! I’ve configured and verified https://efootarena.com as my custom domain, and it’s correctly used as CONVEX_SITE_URL. But CONVEX_CLOUD_URL is still locked on https://adept-chinchilla-166.convex.cloud, and I can’t override it. Can you please promote https://efootarena.com to be used as my backend (CONVEX_CLOUD_URL) so WebSocket sync and Auth work properly?...

Interact with Convex from Nextjs Backend, securely and minimal

My Nextjs backend needs to interact with Convex a lot and I want to ask what the best patterns are. I want my convex functions to know: "This request is coming from our nextjs backend so it's good, let's continue" Currently I am passing {token} to fetchQueries and fetchMutations but this is annoying because I have to pass around that token all the time. It also means I need an authenticated user, or I need to remove auth-check from my endpoint. (token can also only be generated in pages/routes/server actions, so I cant use Convex in util functions without passing that token around all the time...) Another option would be to use an SECRET_KEY on both ends, but that means I would need to pass that into the arguments and my SECRET_KEY would be logged in history in the dashboard, I dont like that approach....

Dashboard: Add Color to drop-down selection of deployments

I like all the improvements, here is a couple small tweaks that would make it even better. I've found myself clicking on the wrong one multiple times = Adding the "deployment type" color would help. Also I've found myself clicking on the already selected one so i think the selected option should be disabled....

Short IDs for Rooms table

Hi there, I'm migrating off of Postgres to Convex. In my application, I have a rooms table that contains a kind of "Code" you can use to join the room. It has 4 alphanumeric digits (just uppercase letters and numbers), so that's 36^4 combinations. Previously I used the sequential room id and generated a short_id using pg_hashids, but as it seems there is no such thing in Convex, because every document id is globally (to the project) unique. ...

Magic links point to localhost:3000 in nextjs

My magic links point to locahost:3000 (which make sense, because I set the SITE_URL to localhost:3000 according to https://labs.convex.dev/auth/setup/manual I also followed the vercel setup: https://docs.convex.dev/production/hosting/vercel But it seems like this does not modify the SITE_URL to point to the preview deployment link...

Got invalid code error on reset password

<input name="email" value={step.email} type="hidden" /> <input name="flow" value="reset-verification" type="hidden" /> const handleResetPassword = async (event: any) => { event.preventDefault();...

Database Bandwidth is too high?

Getting 55gb of DB bandwidth via worker.runMutationWrapper in 1 day. Using workflows. How can I minimize the bandwidth because this is not suitable for production use at all?...
No description

MCP Server Authentication Issue - "Not Authorized" Error

Hi! I'm having trouble getting the Convex MCP server to work with Claude Code (Anthropic's official CLI). Environment: - OS: Arch Linux (native, not WSL) - Convex version: latest...
No description

Moving dev data to production?

Was using an expensive API in dev and we now have to move some data over to production because we have hit API limits. What is the best practice/way to move over the data and also handle conflicts? Thanks!

Incorrect Axiom stat query

When using the Convex dashboard in Axiom the successful function calls statistic includes all the function calls, not just the succeeded ones. The query is identical to the total function calls query.

useAuthActions() no signUp

Disclaimer: I'm green in the web-dev space (a Webflow developer that is fed up with No Code) I'm curious as to why there is no "signUp" method. With BetterAuth and other implementations I notice that there is a separation between signIn and signUp. It definitely simplifies the implementation of auth but are there further implications down the line? If anyone can enlighten me, I'm curious as to this design decision 🙂...

--env-file option not respected

The --env-file option of the convex dev command is not being respected. There is also one more issue suffering from this https://discord.com/channels/1019350475847499849/1389435809337442335 For reference, this option was introduced back in https://github.com/get-convex/convex-backend/commit/2ed5fe1139153d0ede9828ffcd977f7b2866150d...

Are .runAfter(0, api.something) awaited ?

Hi, I'm using R2 components to store files with an Action. I'm running into an issue where the r2.getUrl() is returning an url before r2.store() or Cloudflare R2 finish processing my file to their CDN. Adding a 1 second promise between getting the url and displaying the url fixes it but it's very ugly. Any suggestions ?

Existing client crashed from new deployment

Often after deploying convex changes with my vercel frontend changes, my exisitng user would crashed because their local has not been updated, so they have to clear browser cache in order to fix the issue, what is the best way to go about this with convex?

Convex functions should not be imported in the browser.

I facing this error: Convex functions should not be imported in the browser. This will throw an error in future versions of convex. If this is a false negative, please report it to Convex support. I didn't directly import the mutation function from convex folder to frontend there, Im using the api + useMutation ...

Convex Auth issuer inflexibility?

Hey, I've tried now to connect with 2 different auth providers, one of whom had the issuer set as a single string (not allowed via convex auth) and the other had issuer set without explicitly setting the protocol ie. "theirDomain.io" Whenever I input the issuer/domain it seems to be receptive, but fails to verify the auth as on closer inspection convex appends the "https://" itself on the cloud console....

Add "state" index to _scheduled_functions system table

I just thought of a use case for querying the _scheduled_functions system table. However, it involves focusing on pending functions, and according to the AI bot, there isn't currently an index on the state field. How difficult would it be to add a default index on that field so that users don't have to rely on filtering to narrow down the query results?