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

Stuck trying to get Tanstack Start + Clerk working

All I did was the following pnpm create convex@latest Then chose tanstack start ...

Multi Tenant Automated Deployments

Hello! We're onboarding Convex for our NextJS service. We run multiple deployments of our service (single tenancy), we package our NextJS app with Docker and deploy to AWS using CDK. Do you have any advice for how to integrate the Convex prod deployment steps into our workflow? We want to make sure that Convex code is always in sync with our NextJS code.
Alternatives I've considered: - Run an additional script with every deployment of our NextJS server that will run npx convex deploy with the /convex that we packaged with the NextJS image - Run npx convex deploy as a startup script for our NextJS project...

advice for migrating from pg+go+svelte

the below was copied from #general, as a Convex outage has drowned it in chat. hello, I have a question regarding the backend functions. I might be looking at convex from a different perspective - as someone who uses mainly Go for backends both for side & work projects, is this something I'd have to drop, as as far as I understood convex is supposed to REPLACE my backend? or should I regard these like pocketbase - a sort of.. preprocessor to db queries, which can be called from a frontend but if you're feeling like it you can also put a backend between it given theres client libraries for things like python, is there some way to also opt in to using other non-js languages on the "backend" (through wasm or whatever)?...

Database is down

WTF? I have live users who require the database to be up and running, you guys are seriously failing me right now. Please get it together....

Convex server status

Is Convex up and running, am unable to connect to DB directly from dashboard or from my app as well.

Convex dashboard loading endlessly

Hey everyone, I'm having issues with my dashboard loading endlessly, I don't think it is an issue from my end but I could be wrong. I would appreciate any help....
No description

Getting an error while running `convex dev`.

✖ Error: Unable to finish push to {DEV_ADDRESS} ✖ Error fetching POST {DEV_ADDRESS}/deploy2/finish_push 500 Internal Server Error: InternalServerError: Your request couldn't be completed. Try again later. Failed due to network error, retrying in 2.8s......

Question about how Convex makes transactions in a mutation

I'm testing out convex right now and I'm slowly falling in love with it, one of the features that blew my mind is how it converts mutations into transactions using plain typescript. However, there might be repetitive logic and I figured out a way to reuse that logic but I'm not sure if that is going to break the functionality of converting it into a transaction Let me show you the code below ```...

Convex mcp connect to self hosted instance?

I am getting "not connected" and "connection closes" when using convex mcp on my self host instance of convex? Is there something I need to include extra in my mcp config?

type error using zodToConvexFields

I am pretty sure, I am using this correctly, I am not sure why I am getting a type error, can someone explain me the issue?
No description

Can you use convex in a chrome extension without worrying about exposing the admin “keys”?

A thought came to mind, can you use convex in a chrome extension without worrying about exposing the private keys in a chrome extension? Can anyone comment on this?...

"Invalid verifier" Error in OAuth Flow Convex Auth + Google

We're experiencing a persistent "Invalid verifier" error during Google OAuth authentication using Convex Auth. The OAuth flow completes successfully up to the callback processing, but fails during PKCE verification in the Convex Auth server.

How to use convex in a server-only environment?

How can I use convex outside of the main client application so that I can query data arbitarily and that I have a set of functions that can only be accessed by the server and not by any user? In a supabase application, I can spin up a new server-side js file via bun and use prisma to query files How can I do the equivalent using convex?...

Bi-directional Paginated Queries

The usePaginatedQuery hook currently functions by first loading an initial page of results starting at the top of the list. More pages can then be loaded using the .loadMore(n) function. This pagination is always one-directional (ie. you always start with the first page and load future pages) In some cases you may want to load a paginated list starting from a specific item in the list instead of the start of the list. This is useful for jumping to a particular item in a long paginated list. In React Query useInfiniteQuery...

Running internal functions from a tooling script

Hi, I would like to create a development tooling script that can invoke specific queries/mutations on our production deployment. Ideally we make these internal functions so they can't be called from web clients. I know that it's possible to call internal functions through npx convex run or from the Convex dashboard, and I'm interested to know if there is a SDK that we can use to do this from a script. I tried creating a SDK wrapper myself which uses npx convex run under the hood, which does work on small queries, but I'm running into issues with JSON serialisation and shell buffer size limits. What kind of implementation do you suggest to achieve querying a production deployment from a development script reliably? Also open for other suggestions, e.g. creating public functions with argument-based token authentication, but I am curious to learn what the suggested best practice is....

URGENT! I lost access to my project!

I had created a project using a personal email. Today, I added the company email as an "admin" to the team and assigned him access to the project. Using the new company email, I removed my personal email (the one that created the project). At first everything worked fine, I was able to browse through the project dashboard and tables but then I logged out and when I relogged in, the project was gone from the dashboard. Now neither email has the project and this is extremely concerning. I'm also a...

Equivalent convex function to prisma db pull to keep multiple repos same db in sync?

So I have a very unique problem. I have a chrome extension and web app being built alongside each other. I had been using tRPC + supabase + nextJS + prisma on the front end but since I couldn’t use tRPC in the chrome extension, I had to use the supabase JS client to make queries. Anyways I’m making the switch to convex and I’d be elated if there was some function that let me “pull down” all the functions I wrote in one of the repos into another repo. The closest thing that comes to mind is pris...

Production Deployment Not Loading NEW Environment Variables (Request ID: 240ef5c77e57d120)

Hello Convex Team, I already exchanged with the AI chatbox, but didn't get anywhere. I am experiencing a critical issue where my production deployment is not loading any new environment variables set in the dashboard. Existing variables work correctly, but any newly added secrets are undefined....

Convex BetterAuth

how do I get the userMetadata by their id using better auth with convex. I mean the user data of the tables controlled by betterauth convex integration.

What is generally a better dev experience Better-Auth or WorkOS?

We have a large NextJS / React code base. We have a fairly large usebase converting from NextAuth. I understand there is not an official Better-Auth package for Convex but it seems like there is a ton of Better-Auth + Convex info and there is this https://github.com/get-convex/better-auth Any advice, gossip experience? ...