Convex Community

CC

Convex Community

Join the Convex Discord! Explore Convex, the open-source reactive database for app developers.

Join

support-community

show-and-tell

general

self-hosted

announcements

Convex Package.json "exports" in a Monorepo

Every package in a monorepo should specify "exports" in Package.json - so other packages in the monorepo could consume the relevant parts of it. As well as implying if the package should be consumed as built JS files or source source TS code and compiled by the consumer. I am trying to understand what should I export from a Convex package. I've looked in the https://github.com/get-convex/turbo-expo-nextjs-clerk-convex-monorepo example, and the Convex package does not export anything. ...

Using Convex + BetterAuth in a B2B Next.js app

Hi, I’m building a B2B application using Next.js, Convex, and BetterAuth. I have a couple of questions about how to correctly handle schemas and server-side API calls. 1. User & Organization schemas I noticed that under convex/data → betterauth there are already tables created for me, such as:...

[CONVEX H(POST /polar/webhook)] Uncaught (FiberFailure) ReferenceError: Buffer is not defined

I am getting this error while trying to use polar webhook, can anyone help me. Error is from validateEvent from polar sdk

I have issue to connect to my dashbarod since yesterday evening

I have error on the dashabrd and websocket disconnection almost 20 min in that state
No description

The `function-spec` command is broken

If you have a literal bigint in in your function schema, it crashes. https://github.com/get-convex/convex-backend/issues/212 Additionally, the generated schema reports "JavaScript numbers" aka. doubles/floats as integers. https://github.com/get-convex/convex-backend/issues/213...

Type error after upgrading from 1.18 to 1.26

Hi, I have a type that was working fine until I upgraded convex to the latest, any suggestion on what I should update my type to?
export type EventsArray = NonNullable<Awaited<ReturnType<typeof getByGroup>>>;
export type EventsArray = NonNullable<Awaited<ReturnType<typeof getByGroup>>>;
...

Cannot deploy Convex in Vercel, keep timing out with internal server error

Local cloud deployment is working, but Preview and Production is contantly failing Our command for building: npx convex deploy --cmd 'npm run build...
No description

Your request couldn't be completed. Try again later.

Hello, I am trying to convert PDF pages to images but I often run into this error: [CONVEX A(pdf:pageToUrl)] Your request couldn't be completed. Try again later....

Expo Example?

Not sure how to do this part: https://www.better-auth.com/docs/integrations/expo#configure-a-better-auth-backend Since it doesn't need a context? but that is needed for the convex adapter?...

Convex Panel Not showing Table Data

Hi. I'm trying to understand why my Convex Panel table doesn't show any data from the dashboard yet it correctly finds the table name? The functions also don't appear even though I have them on the Convex dashboard
No description

Check if user got a valid payment method setup with Polar

Is there a way to check with the Polar component if a user with active subscription got a valid payment method setup? If not the case, upgrading from a free to a paid plan send an error that the customer has no payment setup.

S3 signed urls

I have an existing react app + AWS services. We have recently added a chat area in our app using Convex. We have a users database in AWS rds mysql which is synced with the users table in Convex. The problem we're facing now is how to generate signed urls when displaying the chat messages on the ui with its user avatar. One way we tried without any success is creating another .ts file under convex/functions which is marked as "use node" and use the "@aws-sdk/cloudfront-signer" to do the job....

Dashboard erroring after page refresh due to update on local deployment

Hello, I was working for the past few hours using convex using the local deployment with these envs generated by convex: ```env...
No description

Can't access my website. Message: No matching routes found

Got my website ready but Convex is sharing a link that I can't access and is returning a message saying: No matching routes found How can I fix this?...

CLI command to delete preview deployments

Is there a CLI command to delete preview deployments? Ideally, i'd like an integration with github that deletes preview deployments for branches that were deleted. But i'll settle for implementing that myself as long as there's a programatic way of deleting a preview deployment...

ctx.db.normalizeId("_storage", s) doesnt work?

hey team! instead of casting to Id<"_storage", ctx.db.normalizeId("_storage", s) doesnt work?

Geospatial

I've seen the geo spatial lib for convex but am unable to use it as i need to filter the results with full text search too, my current code is ``` export const searchBookswithLocation = query({ args: { searchTerm: v.string(),...

Extending Convex’s context

Hello 👋 Is it possible to extend Convex’s context? What about middleware? Or is it suggested to just compose stuff inside the handlers? I think extending the context is valuable....

Can't get local development to work

Hi guys! I can't seem to get the local development to work and I'm not getting any errors that would point me somewhere so I'm writing here. I tried running npx convex dev --local --once multiple times, but each time I get the cloud deployment....

Logger

Is it advised to use a logging library (Pino or similar) inside a Convex backend? Thanks! 🙏 Any reason not to do so? I understand some logs are created automatically by Convex....