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

Any idea why `NEXT_PUBLIC_CONVEX_URL` is required in a vercel deployment of using convex auth?

this caused many hours of investigation and confusion. for some reason, upon deploying from vercel (preview & prod), NEXT_PUBLIC_CONVEX_URL was required ENV. there was an application server error due to it being missing. I assume triggered via convex-auth provider. During local development, this was never needed. My local .env did not include it. I did have NEXT_PUBLIC_CONVEX_CLOUD_URL which what was used when initializing the client auth via const convex = new ConvexReactClient(process.env.NEXT_PUBLIC_CONVEX_CLOUD_URL!); however, no reference to NEXT_PUBLIC_CONVEX_URL within the project....

String into ID !

That feels so simple and yet I can't manage to nail it on my code :/ Can anybody help? I have this ticketId value in a string and I just need to pass it as an argument in the correct format! What should I do?
No description

Has anybody solved implementing a trigger for _scheduled_functions changes?

I'm creating a job queue, in which I ctx.schedule jobs, and I'd like to update the resulting jobQueue record when it's complete (my jobQueue objects are different and used differently from the primitive _scheduled_functions). I've tried the convex-helpers/trigger, but it doesn't seem to fire on the _scheduled_functions tables, as I don't update it directly. ```...

Help needed: Integrate Launchdarkly with Convex Dev

I am following the tutorial here https://www.convex.dev/components/launchdarkly to setup Launchdarkly with Convex Dev. I am at the step of setting up integration on LaunchDarkly Dashboard. I have filled the fields "name, environment, webhook url, component API token". Then I save the configuration. When I click the configuration form again to validate the configuration, I am presented with an empty form. So I decide to fill it again. When I attempt to generate a new token (I closed the terminal and lost the previous one), I'm getting the error message "A token already exists. Delete the existing token from the tokens table to generate a new one"...

...authTables not showing in api client

Even though I added the ...authTables to the schema they are not showing in the api client but they are showing on the website ```ts import { defineSchema, defineTable } from "convex/server"; import { authTables } from "@convex-dev/auth/server"; import { v } from "convex/values";...

Not sure why this is throwing a "multiple paginated queries" error

``` export const getJobsCountWithQueueAndStatus = internalQuery({ args: { queue: v.string(), status: v.union(...

Docs feedback: CLERK_SECRET_KEY is not findable

This critical (edit: I'm not actually sure which scenarios it is required) environment variable, CLERK_SECRET_KEY, is not in plain text, so therefore not findable in documentation. It is burned into an image on https://docs.convex.dev/auth/clerk...

React quickstart breaks on `npm run dev:frontend`

I ran npm create convex@latest and then npm run dev but I'm getting an error. ``` % npm run dev:frontend ...

I just finished the tutorial and I have some questions

* Can Convex do local-first? Work offline and sync later? * Is it possible to run your own convex reactor? (Like github co-location) * Do companies need to worry about Convex having access to their data? * This is vendor lock-in, right? * What happens if you exceed the maximum quotas?...

Sign in flow not working on deployment on AWS Amplify

I am using the Clerk, Convex template and the sign in flow on the frontend works on my local deployment. However, it does not work on the deployment that we have on AWS Amplify. Is there a configuration that we are missing causing this issue? Here is a screenshot of the env variables configured within Amplify
No description

Getting current user id in mutation

Hi! I'm trying to post a comment related to defined item. I pass itemId as an argument but i want to use current user's id as a comment author. I've configured simple password login. I could see in database that fields i used in withIndex are equal but i couldnt pass identity.subject as is as it is not Id<users> field. thus query returns empty array. How to do this correctly? Should I use users collection instead of authAccounts? ...

convex-python client freezing when using set_auth

Hi Convex team! I've encoutered a strange error: convex client is freezing on query when the .set_auth(<token>) is used prior to the query. ...

How to handle metadata fetching in nextjs(14.2.14) + Convex

If for instance I want to have the some of the user's information as metadata, How do I go by doing this with convex? cause it works just in development for me.

Next.js 15 (Canary) - Issue with Convex Auth Context

I'm using Next.js 15 (canary version), and everything works fine most of the time. However, occasionally after a hard reload, the middleware indicates the user is authenticated, but mutations fail because the ctx.user is undefined. For example, inside a mutation: ... const userId = await getAuthUserId(ctx) ... returns undefined, This issue seems to resolve itself after a few refreshes....

React Native Deployment

Please I need help to deploy for react native. I have tried so many maneouvers but the app just can't get the CONVEX_URL. I'm using expo for development and using eas build for deployment. The best result I go recently when I tried pushing to google store is in the screenshot attached. I have updated my environment vairables on eas and still nothing....
No description

Union schema: no type inference?

Why is the type not correctly inferred when querying a table with a union schema (see image)?
No description

Convex-helpers zod.ts typescript error caught by npx tsc

Everytime we run npx tsc in our project this specific zod.ts has a error that is caught, and we cant get typescript to ignore it. We are in a expo app, with convex installed, and 1 shared tsconfig in the root: ```ts...
No description

Tutorial doesn't actually work with Node 16

If you do the tutorial steps to start developing with Convex with Node v16.10.0, you'll get an error: ``` npm run dev ...

nextjs issue

After starting a new fresh project using nextjs, i tried to install convex-helpers, it throws this error when installing convex-helpers,.
npm install convex-helpers@latest
npm ERR! code ERESOLVE...

Ignoring _generated in pull requests/git diff

Hey, does anybody know how to do this? It's suggested to not gitignore the _generated files for CI/CD reasons (and we concur with this), but we would still like to not have the files show up in our diffs for pull requests. We tried putting the belowin a .gitattributes file, but seems like that doesnt apply to github pull requests. Anybody have some advice for this? Thanks! 🇩🇰 ```/convex/_generated/* -diff...