Deployment Issue. Error: ConvexReactClient requires a URL like 'https://happy-otter-123.convex.cloud'. #7280
-
SummaryI have a NextJS project that uses Convex as the backend. It works locally, but when I go to publish it on Vercel, the build process fails saying: "Error: ConvexReactClient requires a URL like 'https://happy-otter-123.convex.cloud'." In my ConvexClientProvider.tsx, I call the convex URL that's in my env.local file, which was generated by convex. I'm able to log the url in my local, so I know the value is being passed. Has anyone else run into this issue? ExampleNo response Steps to ReproduceN/A |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Did you ever figure this out? |
Beta Was this translation helpful? Give feedback.
-
This discussion was automatically locked because the community moved to a new site. Please join us at vercel.community |
Beta Was this translation helpful? Give feedback.
You have to create a deployment key separately to get it working. Follow the guide here: https://docs.convex.dev/production/hosting/
Choose the deployment you are using. Also, don't forget to change the SITE_URL environmental variable on your convex project from localhost to the domain name.