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

Getting all organization users by org id from clerk

hi, guys. Newby here. I have come here to ask for help. I am currently trying to get all clerk users of the same organization authenticated user is part of. Can anyone help me understand how I can achieve it? Is it a good place to ask such a question? My stack is convex/clerk/nextjs

Advice re: schema design for user-specific role-based properties

I'd love some help brainstorming a solution to an app problem. I'm building a staff dashboard app for work. Users of this app will each have one or more assigned roles. I've got both a users table and a roles table, with the relationship between them already established. No issues there. For some (but not all) roles, there will be custom settings that are exclusive to the role. For example, with the Salesperson role there's a default commission percentage for all salespeople, but an individual salesperson might have a commission that overrides that default. While I could create something like a commission field directly on the users table to store this value, I really don't like to have fields that are only needed in limited use cases. The commission override is just one example of a role-specific setting, and there could be a lot more over time, so I'm trying to think of a more efficient way to save such settings without creating tons of limited-use fields....

Convex Auth

when convex auth will support svelte/vue/etc.? how can i authorize users in my svelte (vite) app now?...

how do I upload bigger video of 10-20 minutes on convex in live as I am filming it in OBS

Is there any simple way to implement this kind of setup with convex?

need support

hi i need support please

Pitching app using convex

Built a MVP for a client which is using convex (obviously) that starts to get traction after pitching their clients and potential investors and I’m being asked to join their meetings to discuss infrastructure details, security and privacy, etc… Audiences are VPs procurement, architecture, legal. What are the resources on these topics? I saw some content on the website but was wondering if there are some more details I could find to prepare these meetings. Or is discord the best place to ask these questions?...

Stuck at "Finding component definition..."

I did a bunch of large changes and now my CLI gets stuck like that. Tried removing all generated files. Emptied the whole database. Appending -v doesn't log anything else. ...
No description

Self hosting and planetscale

If we self host and point towards an existing planetscale db will that self hosted instance create a convex schema/api from the remote db?

isLoading from useConvexAuth() always returns false

I need help debugging why my useConvexAuth() hook is returning false for isLoading whether or not the user is going through the sign in process. It is completely unresponsive even signing out or in, it will just remain false. This happens for both normal password/email sign in as well as OAuth sign in. The only time it is set to true is briefly on app launch. But once the user tries signing in it won't be responsive anymore isAuthenticated on the other hand is properly functioning as expected....

Convex Email Auth - Params

when using convex-auth is there a way to send more details about the user while authenticating them? its to do with params but how do i access those params in auth.ts or resendOTP.ts?...

Github Oauth integration error

I'm trying to use Convex Oauth in my project, & followed the exact steps as mentioned in the docs, but i don't know why, i keep getting an error. I have added all the environment variables, URLs and Oauth app correctly in github as mentioned in the docs. Also whenever i click on the buttton for login to github i get this response in my termnal: 'POST /api/auth 404 in 25ms'. Please help me!

Handling large video files from s3

Hi all, just wondering if there's a solution to handling large video files - I'm integrating a meeting bot system (like Recall.ai) that sends a s3 blob url that I need to save into convex before the url expires. Seems like I run into Connection lost while action was in flight error when the video is above certain size - any suggestions?...

Convex + Clerk not working in production.

I don't know what else I can try, I can see that when creating an account with clerk a new user is added to my table, but if I check if user is logged in I have no data coming back. It only happens in production but I can't figure out what it's happening.. Maybe an env. variable? Everything seems to be set correctly in Vercel, my auth.config.ts is also taking into account production environment but that's not working at all.. Any ideas?...

Act as Authenticated User Convex + Clerk

On my convex query i call the function below, which follows the recommend way to store clerk users on the convex db. const user = await getCurrentUserOrThrow(ctx); when using the convex dashboard function input, how can i pass the userId to test my functions?...

possible support for top level await from npm packages

Is it possible to allow for top level await from certain npm packages? Either through a convex.json parameter or some other custom build property?

Moving Migrations to their Own Files

Hi folks, I’m working on adding Migrations using the Stateful Migrations Component and have got everything working. I got a note in code review from @Eva that it’d be good if we could split up our migrations into their own individual files, but when I attempted to do that, I started getting Convex errors. Is there a supported way to use the migrations component and also have each migration live in its own typescript file (e.g. /convex/migrations/setQuestsUpdatedTimestamp.ts)?...

Using Resend with Convex getting error

```ts "use node"; import { v } from "convex/values"; import { mutation } from "./_generated/server";...

Trouble setting up convex-r2

I'm trying to set up convex-r2, following this guide: https://www.convex.dev/components/cloudflare-r2 I'm getting this error from convex dev: ``` Error fetching POST https://combative-opossum-472.convex.cloud/api/deploy2/start_push 400 Bad Request: InvalidModules: Hit an error while pushing:...

Different functions and root folders?

Is it possible to specify a root folder (e.g. where schema.ts and convex.config.ts are) as well as a different functions folder (i.e. where functions on the api object will be found). Am basically looking to achieve this folder structure: ```...

"use node" is present in node runtime file but still getting "you are using node APIs" error

In a file in which I only use actions, I'm trying to use the mailchimp npm package: ``` // mailchimpActions.ts "use node";...
Next