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

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?

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";...

How to create a Convex Auth user & authAccount manually

My app uses various chat bots. If someone interacts with a discord bot and creates some things, it'd be nice for those things to be associated with their discord user. Later, if they sign into the app with discord via convex auth, it should know that they're the same user who's been using it through the bot. Here's what I came up with: ...

How to get bearer token for user

Hi everyone, I want to make a function that pushes Bearer token that can be used for httpsAction auth to GitHub as a secret. These secrets will be used in a CI/CD pipeline to call a webhook and run a mutation, thus they need to be authenticated. What I can’t figure is where to actually find/get the bearer token that is used for autentication. I am using Clerk...

Internal actions and fetch in Convex

Help with internal actions and fetch in Convex Hi everyone, I'm having an issue with internal actions in Convex, and I'd appreciate some guidance....
No description

I cannot edit my documents

Hi, i'm using dashboard and trying to edit one of my documents but it says fix errors to save it. My document has a v.bytes() field that causes the error. But there is nothing invalid about the value of it. It is a normal array buffer value 🤔