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

open-source

announcements

Cant get to my convex dashboard

Hey Team, after i click the login button, i keep getting the error seen in the message. Seems like a 500 error. I tried claering cache and tried different browsers as well....
No description

Setting up a custom domain

I'm having trouble following the docs to understand the process of setting up a custom domain for my Convex site. I'm using Cloudflare Pages, and the build and deploy part are working, but the app displays a white page with a console error reading:
Uncaught Error: ConvexReactClient requires a URL like 'https://happy-otter-123.convex.cloud'.
Uncaught Error: ConvexReactClient requires a URL like 'https://happy-otter-123.convex.cloud'.
...

Video processing

Hi I need to transcode a mp4 into mp3 to get the audio from a video, but since convex is serverless, dont have access to file system, and convex functions are on the cloud so they dont have access to my localhost either, are there any solutions for this? ```javascript export async function extractAudioFromVideo(...

Serializing/deserializing `Request`/`Response` objects in HTTP action

I'm trying to integrate Effect's HTTP API library (it's like Hono, basically) with my Convex HTTP API, but (until someone adds a Convex platform for @effect/platform 🙂) doing so requires me to run the HTTP endpoint handlers in a Node runtime. I'm at the point where I have a function (request: Request) => Response, but if I can't run the handler directly in the HTTP action, maybe I could serialize/deserialize the Request/Response objects? I'm curious whether this has come up before, and...

Use cases for using Tanstack Query and Convex together?

I am very new to Convex so please excuse me if this is a totally obvious question as I'm trying to wrap my head around how to structure my app as I move it over to using Convex. I used Tanstack heavily for a while and the primary reason why I switched over to Convex is because I was a bit tired of managing the cache and making sure everything is real time in my highly reactive app. I've been loving Convex so far because it reduces that processes to just two steps (query -> mutation) and adding new features has become faster. I do love Tanstack query but I felt that convex could really replace most of my use cases for it. I hope this gives you a bit of a background of where I'm coming from. ...

Bug: Console missing CONVEX_DEPLOY_KEY

Hi, I am reviewing a live production Convex app and I notice the console's "Production Deployment Settings" is not showing my CONVEX_DEPLOY_KEY. The app is running in Vercel, so I must have generated it in the past. I am referring to: https://docs.convex.dev/production/hosting/vercel 4. Set up the CONVEX_DEPLOY_KEY environment variable...
No description

Make phone provider a valid credentials provider

Currently if a user wants to sign in using account id and password that were created using phone provider the backend returns an error: "Uncaught Error: Provider phone is not a credentials provider", which I understand considering that there is initially no password set. However one (like me :)) could implement a flow where secret (password) is set retrospectively and thus a phone provider could also be used for credentials, but perhaps only when secret field is actually populated. Is something like that to be expected in the future? Thanks....

Buffered queue race

Objective: Concatenate incoming messages and process them 5 seconds after the last message is received. Solution: Check if a "processing" task is already scheduled. If so, cancel the existing task, concatenate the new message, and reschedule the task. Expectation: Convex should internally handle race conditions in the scheduler, ensuring that no more than one processing task is ever scheduled at a time....

Verifying JWS Signed Payload in Convex httpAction

I am currently working on verifying an Apple App Store notification's signed payload using a public key within a Convex httpAction. Below is a snippet of the code I am using: ```ts import jwt from 'jsonwebtoken'; import { httpAction } from '../_generated/server';...

Help using Convex Action

I'm trying to use an action because I'm calling external SDK and cryptr npm package. But I got an error, I can't find what is wrong. convex/facturapi.ts ```ts...

Convex cache `useQuery` breaks type safety

```tsx import { useQuery } from 'convex/react' import { useQuery as useCachedQuery } from 'convex-helpers/react/cache' const Component = () => {...

Convex-auth with solid or other non-react frameworks

Is there a reccomended way to set up convex-auth for frameworks other than react? I've gotten pretty far with solid js by just calling the signIn/signOut actions from convexAuth() from @convex-dev/auth/server. I can successfully retrieve the auth token but I can't seem to get convex to recognize the user as signed in....

YouTube video watch party design

I have a use case of integrating with the YouTube player iframe API, so that there can be a watch party of multiple users watching the same YouTube video (w/ the video playing at the playing time for all watchers). How would I design a situation like this? What I'm currently thinking is writing the currentPlayingTime to the Convex database every time someone clicks somewhere on the playing bar. Alternatively, I could choose some repeating write logic, e.g. write the current playtime every second or so, but that would cause the video to have a skipping effect since YouTube API can only play to the nearest second....

Are there any examples of best security practices for implementing role-based access control (RBAC)

Are there any examples of best security practices for implementing role-based access control (RBAC) when making requests in a Next.js application using Clerk for authentication and Convex as the backend? Specifically, how should server-side validation be approached?

Problems with the MGMT Example Project (Templates)

I wanted to install the MGMT Example Project from the templates (https://www.convex.dev/templates/fullstack), but when I run "npm run dev" I get the error 'ERROR: "dev:init" exited with 1.'. Does anybody know what that means?...

afterUserCreatedOrUpdated() not being triggered after user creation or update

I have implemented two providers for phone sign-in using these examples: https://github.com/get-convex/convex-auth-example/blob/f699ad3c4c6d3cdcad6b182b9009004c443e53a5/convex/otp/TwilioOTP.ts https://github.com/get-convex/convex-auth-example/blob/5163bd646c208dfce64b3cd4f05109d3c7dbe6f2/convex/otp/TwilioVerify.ts I want to populate the tokenIdentifier field of the user document for later use. I have extended the authTables's users table to have the tokenIdentifier field available....

updating nested object with optional id field

I have scheme like this ``` users:{ nib:v.object({ no:v.string(),...

Can we add custom domain to dev convex deployment?

Currently it seems like we can add custom domain only to prod deployments. Are there any plans to extend that to dev deployments as well?

Help fix the password auth in my sveltekit example

The official auth demo is using react: https://labs.convex.dev/auth/config/passwords I tried that in a new sveltekit app, but got some problems, please help me find out where I'm wrong. layout to init convex filename=src/routes/+layout.svelte: ...

Filter context menu shortcuts not working

For example, if I right click a cell and select filter by > equals "<value>", the filter that's added is "equals null". Even if I select a different option from the context menu, such as greater than, the resulting filter is always "equals null".