MietzeKatze
MietzeKatze•5w ago

Is a convex function code visible in the webclient ?

Hi there, I just wanted to make sure I understand this right .... If I create a function in convex. It will get uploaded to the convex server and then all the code will life there. So a malicious user, looking at the webclient javascript only sees useMutation(api.myfunction) but can NOT see the actual code of the function, or even modify it ? 🙃
3 Replies
Convex Bot
Convex Bot•5w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
Clever Tagline
Clever Tagline•5w ago
Correct. The functions themselves live on the Convex server, and the custom hooks in the client just connect to them. The function code isn't exposed anywhere.
MietzeKatze
MietzeKatzeOP•5w ago
thats a realy nice feature !!!! thanks for clarifying 🙂

Did you find this page helpful?