Convex Community

CC

Convex Community

Join the community to ask questions about Convex Community and get answers from other members.

Join

support-community

show-and-tell

general

self-hosted

announcements

But the schema cannot be updated if

But the schema cannot be updated if there is existing data unless you turn off schema validation, right?

Is there a way that I can track a convex

Is there a way that I can track a convex fatal error? [CONVEX FATAL ERROR] Auth provider discovery of https://79ad67f7cae0.ngrok.app/api/ failed...

I don't think so – it was working fine

I don't think so – it was working fine as of about 5 hours ago. I don't run a vpn or any custom connectivity stuff The fact that it appears to be failing silently makes debugging difficult...

hello everyone, im finding extremely

hello everyone, im finding extremely confusing to configure authentication with a stack with next.js, clerk, and convex, so many tutorials referring each other, im kind of lost and i dont know wat is the official tutorial anymore. am I missing something? is instead convex auth now reccomended?

I am in the process of trying to manage

I am in the process of trying to manage access tokens for a user across different providers. Wondering if anyone has already went through this process using convex auth ? Specifically, the process of storing the access tokens and refresh token flow. Currently, I have a process where the access token is just saved to the users table, but this is not a long term solution. I think I would have to probably store the tokens in the authAccounts table. If you have solved this issue or have a work...

Hello hello. Shout out to the convex

Hello hello. Shout out to the convex team - absolutely loving the product!! I'm noticing my biggest pain point is that even though the data retreived caches, my data always refreshes. For this I want to implement React (Tanstack Query) in my Vite App. Anyone have experience with convex x tanstack? Are the docs accurate for this?

i love reactive update via websocket

i love reactive update via websocket from convex but i am missing one part. that mutation code can be shared with withOptimisticUpdate. so i dont need to write basically same code on server and client. to find the way where schema tables and localstore can be same and execute same code

query cache on the server side

would be great to have query cache on the server side so static data doesnt cause billing increase

Hi guys, I need help overriding the

Hi guys, I need help overriding the build command on eas. On Vercel with a NextJS project, you can override it with this command npx convex deploy --cmd 'npm run build' ...

i got a question: how would I sync an

i got a question: how would I sync an external list to the convex DB? I have a Substack newsletter that I'd like to keep track of their subscription status (mainly free vs paid) in my Convex app. I have setup an automation where I'm able to download, every hour, an updated CSV with all my subscribers and their status. Now I'm thinking how I will keep that CSV in a Convex table or be able to reference its data....

detect if there is no connection to the server

is there a way to detect if there is no connection to the server? i want to show message to the user

All packages installed on client side?

i dont quite get how to use nodejs runtime for action functions. how to install packages in convex. lets say i use external packages. this means i need to install the package that i need in convex but dont need on client side on client?

@jamwt I also have a function that

@jamwt I also have a function that returns player position based on score on the leaderboard ie #320 for field score 2313 points, is there a way to do that without fulltable scan to count players above?

Share API between Expo app and Next.js web app

Hii, i need some help regarding my convex project. I have a expo app with convex and now i want to make admin panel for this app in web with next js. How can i use my existing convex backend in my web. i tried to copy convex folder from app to web but it is not working as expected like @convex/auth-dev this package is not giving export intellisense. But when i am putting path manually then it is working. But this approach is not scalable we are multiple dev. one other approach to add monorepo b...

Not a slug

Do people have a favourite id field name for what is essentially an alternate _id? For use in the frontend/url, maybe with relations? There's no other reason for it or particular logic behind how it's generated, and it is NOT a "slug". I tried just calling it "id" but that was challenging for me and my friend Cursor Tab.

__tableName on IDs

is __tableName supposed to be undefined on client-side? I have a field that can be one of two possible kinds of Ids, want to check which one it is in runtime...
No description

But don't worry, the clever devs have

But don't worry, the clever devs have already come up with a solution - the convex library already uses websockets! so you don't need to do the extra overhead of moving data in an out of another layer of server

Thank you for your quick reply. If I

Thank you for your quick reply. If I enter the command in the local environment and deploy manually, it works. I have also removed *.vercel.app domain from vercel under domains. If you go to the deployment link, then 404: NOT_FOUND is shown. It is deployed like a kind of website, but is not accessible. Is this all correct?

Hi, I am evaluating convex for an app

Hi, I am evaluating convex for an app that currently uses yjs / livekit but got too complex. for saas I can use hosted, but many business clients want full no premise solution so I need to self host. I see you don't support migrations, but is there any migration guide or info and are people doing it in practice? I also can't afford an enterprise plan with on premise support as I'm just getting started and they are SMBs, but I also can't adopt convex without self hosting for them on their server...

Returning scheduled function id

Am I trippin or losing my mind - is is not possible to schedule an action in a mutation and return the scheduled function id? As soon as I attempt to return scheduledId in the function below, both the function declaration deleteUser and the scheduledId variable incur the TS error implicitly has type because it does not have a type annotation and is referenced directly or indirectly in its own initializer. ``` export const deleteUser = authMutation({ returns: v.id('_scheduled_functions'),...