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

Are there example repos using Convex Ents?

Are there open source or example repos using Convex Ents? I didn't get any search results from the GitHub search bar in the get-convex org. https://github.com/search?q=org%3Aget-convex%20defineEntSchema&type=code...

Setting oauth scopes with Convex Auth

This may be Auth.js specific, but I'm hoping it can be handled in the Convex Auth api. The default scope for GitHub OAuth includes a user's private profile data, rather than just their email. I'd like to use read:user scope only. Is there a way to do that currently?

Schema Intersection

I try to create the following model: ```ts type Asset = { status: 'created' | 'removed' } & (...

[Convex Auth]: Monorepo Expo app: "Unable to resolve @convex-dev/auth/server" ...

Hi, we're building a Turbo Monorepo Expo app and are running into the error pasted below when running the Expo dev server from our native package. The error occurs during bundling when we try to open our iOS app. Our native app in apps/native/package.json has a dependency on packages/backend as "@flimmer/backend": "*", ...

Fetching the file url and then render the associated file

So I'm trying to load a 3d file from the convex storage but I cant get it to work. It’s a .splat file. I only need a valid url of it to render it, though I seem to fetch it wrong. I exactly followed the docs on file serving. I uploaded the file to convex and made a collection called „models“ and saved a document with the files storageId. ```tsx "use client"; ...

Prod build error broken: 403 Forbidden: ReadOnlyAdminKey: You do not have permission

My prod build just broke with the following error: Error fetching POST https://exuberant-bullfrog-95.convex.cloud/api/prepare_schema 403 Forbidden: ReadOnlyAdminKey: You do not have permission to perform this operation. Why is this happening? I correctly configured the deploy key on the env...
No description

How to auth in local mode

Hello, with the current outage and the fact i had to take the train recently. I found the need to run a version of convex in local so I can develop nicely without connection / when convex/clerk has issues. Any hints or pointers ?...

"Could not verify token claim"

I'm using Server-side authentication for about 2 months with "return (await auth().getToken({ template: "convex" })) ?? undefined;" It worked perfectly ok until about 1 hour ago when it started to throw Error: {"code":"Unauthenticated","message":"Could not verify token claim"} both in my dev and the prod envs. Any idea what could it be? Thanks!...

Error on deploy: Cannot read properties of undefined (reading 'addHttpRoutes')

Hi, for a couple of hours (?) i'm unable to deploy due to this error: ```Error fetching POST https://xxxxx.convex.cloud/api/push_config 400 Bad Request: InvalidModules: Hit an error while pushing: Loading the pushed modules encountered the following error:...

Can I use convex file storage to upload a javascript file?

I want to upload/update my javascript file then use it like: <script src="https://my-convex-storage/my-script.js"/> is that possible? is that normal lol?...

Issue with asyncMap in convex-helpers and Next.js 14.2.5

I'm getting this issue when trying to build my next.js app within my monorepo. I'm using the convex-helpers in my backend package. I'm not sure what i can do, my target is set to ESNext for both next.js and my backend package. ```ts...

where get ConvexVectorStore?

I'm working on a rag project. The point is that to retrieve data from a vector database, you need to use the ```const vectorStore = await ConvexVectorStore.fromDocuments( splitDocs, embeddings, { ctx }...

Storage generate upload url new features

Is it possible to add any restrictions in the function that we can use when generating upload URLs for storage in the future? for example -file size -file type...

Need help regarding bandwidth

Hey guys, a newbie here. I made a notion clone with the help of the tutorial from Antonio and have been using it as my regular note app. But few days ago it shows that my bandwidth usage has passed the free tier limit. I don't actually know much about databases and backend stuff yet. So, can someone please enlighten me on how I can fix this thing and enable my project while keeping the usage within the limit? Attaching a picture for reference....
No description

Type check help - Passing an Object of type Doc<"table_name"> but has partial values

I'm basically wondering if there's another way of Doing this type here? where the body is supposed to be of type Doc<"settings"> but partially has that type? ```ts export const update = mutation({ args:{settingsId: v.id("settings"), body:v.any()}, handler:async(ctx, args_0) => {...

Strange Doc type/inference: "[x: string]: any;, _id: Id<string>;"

Hi, we've been running into this strange problem a few different places in our repo by now and can't quite seem to figure out what's going on. Basically, sometimes, the type returned by a Doc<TableName> returns this strange thing:
{
[x: string]: any;
_id: Id<string>;
}
{
[x: string]: any;
_id: Id<string>;
}
...

Is there a recommended way to use Convex on "admin mode"

I have setup an "apiKey" in the args for mutations, query and actions that i want to protect, but it seems a bit hacky. Wondering if there is another recommended approach? Something similar to the firebase or supabase admin client would be really nice IMO

.jpg images are uploading with 0 KB while .webp are OK

Hello, .jpg images are not uploading correctly don't know why. ts``` 'use client'...
No description

Need help using the uploadstuff api

Hello, I'm trying to follow the example in the uploadstuff website. 1. I create a convex/files.ts file and paste the code provided. 2. Then I paste the code in the UploadButton to my component. ...
No description

Support `--success` with `npx convex dev --tail-logs`

Maybe --tail-logs-success as an additional flag? (or by default)