Struggle with deployment, please help
Im facing a lot of issues with my production build. Im developing on top of the turbo repo template with nextjs, expo and clerk.
First of all it looks like the npx convex deploy does not find the functions because even thought the build is complete. The functions is not there in production. I have followed the guide convex provides but doesnt work for me. Another issue is with clerk still using the dev url to sign in and I dont know how to make it go to my production one that is my on my custom domain. If anyone has used this tech and deployed succesfully, please give me a helping hand.
First of all it looks like the npx convex deploy does not find the functions because even thought the build is complete. The functions is not there in production. I have followed the guide convex provides but doesnt work for me. Another issue is with clerk still using the dev url to sign in and I dont know how to make it go to my production one that is my on my custom domain. If anyone has used this tech and deployed succesfully, please give me a helping hand.
5 Replies
1. Clerk: Make sure you use a separate Clerk instance for prod
2. "The functions is not there in production." What do you mean by this? Are you getting any errors?
Docs relevant to Clerk: https://docs.convex.dev/auth/clerk#configuring-dev-and-prod-instances
Convex & Clerk | Convex Developer Hub
Clerk is an authentication platform providing login via
1. Yes that is done.
2. What I mean is that when i run "npx convex deploy" locally. The functions get uploaded correctly. But when I run that during build in vercel as the guides says. It works but the functions get doesn't upload, rather it deletes if there is any.
I have tried that guide among others provided by convex.
I think this thread might help you:
https://discord.com/channels/1019350475847499849/1254485806869909647/1255159054150533161
We need to fix the template to include a working build npm script.
Hmm, I still havent got it to work yet