entropy
CCConvex Community
•Created by entropy on 12/11/2024 in #support-community
Next build error when ran in github action
this is without the testing I did with pulling env vars from vercel before building
8 replies
CCConvex Community
•Created by entropy on 12/11/2024 in #support-community
Next build error when ran in github action
Here's my action as well
8 replies
CCConvex Community
•Created by entropy on 12/11/2024 in #support-community
Next build error when ran in github action
root package.json
"build": "turbo build --parallel"
next app package.json
"build": "next build"
turbo.json
8 replies
CCConvex Community
•Created by entropy on 12/11/2024 in #support-community
Next build error when ran in github action
I was trying to just build my frontend to make sure it can complete successfully as a part of my CI. For actually deploying to vercel I haven't had issues using the below build command. I assumed that maybe this issue was that the convex url was missing, but even when pulling my env vars from vercel before the build step in my CI it still throws the error above.
cd ../../packages/backend && npx convex deploy --cmd 'cd ../../apps/web && turbo run build' --cmd-url-env-var-name NEXT_PUBLIC_CONVEX_URL
8 replies
CCConvex Community
•Created by entropy on 12/3/2024 in #support-community
Calculating average rating across a large dataset
Sorry for the late reply but thanks for the suggestions! I wasn't able to figure out how to get the
[Id<'anime>, boolean]
method working so I ended up going with just do a check before inserting into the aggregate (I'm also looking into triggers). I was wondering if this was a good approach overall?
convex/lib/aggregates.ts
convex/functions/anime.ts
convex/functions/anime_entries.ts
6 replies
CCConvex Community
•Created by entropy on 11/29/2024 in #support-community
useQuery different return types
Thanks for the help!
9 replies
CCConvex Community
•Created by entropy on 11/29/2024 in #support-community
useQuery different return types
Ahh that was it. One was imported from convex/react and the other from convex-helpers/react.
9 replies
CCConvex Community
•Created by entropy on 11/29/2024 in #support-community
useQuery different return types
Sure
anime_entries.authSingleById
lists.authAll
9 replies
CCConvex Community
•Created by entropy on 11/29/2024 in #support-community
useQuery different return types
For example with entry, I want to display an error if there was a problem fetching the data. Though if there just isn't an entry yet I know to create one.
9 replies
CCConvex Community
•Created by entropy on 11/29/2024 in #support-community
useQuery different return types
Preferably it would always return the object including information on the query status.
9 replies
CCConvex Community
•Created by entropy on 8/25/2024 in #support-community
Best way of querying documents when using Clerk
as a quick example something like this would be best if I decided to go the seperate user route?
8 replies
CCConvex Community
•Created by entropy on 8/25/2024 in #support-community
Best way of querying documents when using Clerk
I see that makes sense and thank you for the insight!
8 replies
CCConvex Community
•Created by entropy on 8/25/2024 in #support-community
Best way of querying documents when using Clerk
For example if I have a relationship like this where an entry belongs to a user I could either: one use the _id field of the user but then that means I have to query a user by their clerk id to get their user id, or two use the clerk id as the field for relationship and always query by the clerk id. I feel like either there's something I'm missing or there's a better way.
8 replies
CCConvex Community
•Created by entropy on 8/25/2024 in #support-community
Best way of querying documents when using Clerk
So in that case I should use
ctx.identity.subject
passed from my RLS and then query the user for their user id? The main thing is it feels a bit weird having two main id fields with the clerkId field allowing my to avoid querying the user for their id.8 replies
CCConvex Community
•Created by entropy on 7/8/2024 in #support-community
ip whitelist with httpRouter
Thanks for the info! I ended up just doing this:
9 replies
CCConvex Community
•Created by entropy on 5/29/2024 in #support-community
Implementing non OpenID custom auth
Gotcha thanks for the info. The self signing trick looks interesting so I'll look into that.
5 replies
CCConvex Community
•Created by entropy on 5/29/2024 in #support-community
Implementing non OpenID custom auth
here's the code from my previous implementation with supabase for reference
5 replies
CCConvex Community
•Created by entropy on 5/29/2024 in #support-community
Implementing non OpenID custom auth
session utils
https://github.com/test-open-tournaments/2024-website/blob/main/lib/session.ts
first provider
https://github.com/test-open-tournaments/2024-website/blob/main/app/api/auth/callback/osu/route.ts
second provider
https://github.com/test-open-tournaments/2024-website/blob/main/app/api/auth/callback/discord/route.ts
supabase server client
https://github.com/test-open-tournaments/2024-website/blob/main/lib/supabase/server.ts5 replies
CCConvex Community
•Created by entropy on 5/16/2024 in #support-community
preloaded data with paginated query
Yep that works perfectly, thank you for the great suggestion!
9 replies