Ben
Explore posts from serversAarktype
•Created by Ben on 3/10/2025 in #questions
Easy way to validate enums
Excited to see my TS server go brrrr again soon 😉
21 replies
Aarktype
•Created by Ben on 3/10/2025 in #questions
Easy way to validate enums
Just went on autopilot lol
21 replies
Aarktype
•Created by Ben on 3/10/2025 in #questions
Easy way to validate enums
Wow didn't even realize that was a thing
21 replies
Aarktype
•Created by Ben on 3/10/2025 in #questions
Easy way to validate enums
Ya, we've moved away from them as well in favor of an object with as const, but we have like a dozen left in the codebase that we haven't gotten around to cleaning up. Really appreciate your help!
21 replies
Aarktype
•Created by Ben on 3/10/2025 in #questions
Easy way to validate enums
Hmm, okay gonna need a little more hand holding here 😅
Specifically when it comes to the enums values specifically.
This works, but I'm guessing this isn't really what you meant since I'm back to using Object.values, and also I feel like an inline expression would work a lot better here, as compared to using the type in a type
21 replies
TTCTheo's Typesafe Cult
•Created by Ben on 10/3/2024 in #questions
Max Connection Issue with Supabase + Vercel
Ya... it's been a painful welcome :sadCat:
We are using the Supabase built in bouncer/connection pooler
We do have one instance, using the XL machine size
12 replies
TTCTheo's Typesafe Cult
•Created by Ben on 6/3/2024 in #questions
Does saving files incur a cost on Vercel?

12 replies
TTCTheo's Typesafe Cult
•Created by Ben on 6/3/2024 in #questions
Does saving files incur a cost on Vercel?
Ya I'm trying to think how we could reduce bandwidth because it does feel like I'm doing a lot of repeated uploading of the same file:
1) Upload the file to uploadthing so I have somewhere to store it
2) Download the file from uploadthing on our Server
3) Chunk the audio using the above code
4) Send the chunks from the server to whisper to get a transcription
Not sure if their is a step to be skipped here? But if I understand correctly, for a 20mb file, I'm actually incurring 60mb of bandwith cost?
That said I'm already on the pro tier, so it looks like I have a fair amount of bandwith to use? I'm actually confused as to which category this fits into on their current pricing table.
12 replies
TTCTheo's Typesafe Cult
•Created by Ben on 5/12/2024 in #questions
Weird Clerk behavior(user is null) with new API
I think Clerk docs specifically just aren't the best, especially made more confusing by the fact that they just had a total revamp of their API with Core 2
21 replies
TTCTheo's Typesafe Cult
•Created by Ben on 5/12/2024 in #questions
Weird Clerk behavior(user is null) with new API
I think docs are just getting worse lol
21 replies
TTCTheo's Typesafe Cult
•Created by Ben on 5/12/2024 in #questions
Weird Clerk behavior(user is null) with new API
Ya I agree, they have "Roles and Organizations" front and center on the dashboard, but for like 90% of people what they really need is the implentation in this article that's tucked away at the bottom of their docs :facepalm:
21 replies
TTCTheo's Typesafe Cult
•Created by Ben on 5/12/2024 in #questions
Weird Clerk behavior(user is null) with new API
For your use case
21 replies
TTCTheo's Typesafe Cult
•Created by Ben on 5/12/2024 in #questions
Weird Clerk behavior(user is null) with new API
So you mean the right way is with RBAC as per the article above right?
21 replies
TTCTheo's Typesafe Cult
•Created by Ben on 5/12/2024 in #questions
Weird Clerk behavior(user is null) with new API
@Yaki
21 replies
TTCTheo's Typesafe Cult
•Created by Ben on 5/12/2024 in #questions
Weird Clerk behavior(user is null) with new API
Apparently my issue was because I was trying to hit the API from a server component. And it just doesn't work from Server to Server. So I had to make the call from a client component, or do everything directly in the RSC.
In regards to role based auth, read this https://clerk.com/docs/guides/basic-rbac to make sure you actually need organizations and not just metadata based roles
21 replies