loliklr:)
CCConvex Community
•Created by loliklr:) on 5/16/2025 in #support-community
Type safe environment variables
Is it possible to get type safety for environment variables, so that my app only builds if I have added all required environment variables to convex, similar to T3 Env for regular next.js/vercel deployments?
2 replies
CCConvex Community
•Created by loliklr:) on 5/16/2025 in #support-community
Using Neverthrow with convex
I am trying to add neverthrow to my convex functions to get type safety, but when i add ok({hello: "world"}) in a mutation, i get an error complaining about the fact that convex does not accept the type. Is there any way to add neverthrow to my mutations? And if not: What is the suggested way for getting type safe errors in convex?
2 replies
CCConvex Community
•Created by loliklr:) on 5/16/2025 in #support-community
When to use clerk over convex auth
It seems to me that convex auth is a really powerful auth library, it is nice to keep everything in one codebase, it does not seem complex to set up and it is cheaper than clerk if you want sessions that are longer than 7 days. What are the reasons for chosing clerk over convex auth?
2 replies
CCConvex Community
•Created by loliklr:) on 5/7/2025 in #support-community
Type safety for nested objects on patch
Is there any way to get type safety on patch operations in convex?
schema:
myfunction
This does not show any type errors
4 replies
CCConvex Community
•Created by loliklr:) on 5/5/2025 in #support-community
Not using middleware in nextjs
I don't want to move the user to different routes based on if they are logged in or now. Are there any reasons for me to still keep the middleware? I am using convex auth
3 replies
CCConvex Community
•Created by loliklr:) on 5/5/2025 in #support-community
Allowing user to update value streamed from LLM
I am making a chat-like app with ChatGPT using the component https://www.convex.dev/components/persistent-text-streaming. I want the user to be able to edit all the responses after they finish streaming. How can I achieve that? Is it possible to bind a textarea to a convex mutation and have it real time sync?
4 replies
CCConvex Community
•Created by loliklr:) on 5/3/2025 in #support-community
Make Convex Auth fast by not using middleware and not waiting for server to get user

2 replies