rovrav
rovrav1h ago

Convex is only working in production and not development - how to fix?

I tried switching my convex deployment from development into production but it seems to be failing. I'm deploying to vercel and I followed the guide but I'm simply unable to push any data when I'm in production mode. When I revert back to the previous url then I'm able to get everything working. What might be causing this? I notice the color of the production is pink while development is green so I'm not sure if that is indicating anything.
Also I did add the deploy key to vercel and redeployed multiple times but in the URL & deploy key settings it showed that the deploy key has never been used.
How can I fix this issue? Let me know if you need any other questions answered.
2 Replies
Convex Bot
Convex Bot1h 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!
rovrav
rovravOP1h ago
I'm also getting errors like this for reference which don't make any sense
Access to XMLHttpRequest at 'https://api.digital-garden.nudgepixels.com/api/auth/user/v1/is-authenticated' from origin 'https://www.memorylink.app' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Access to XMLHttpRequest at 'https://api.digital-garden.nudgepixels.com/api/auth/user/v1/is-authenticated' from origin 'https://www.memorylink.app' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Or this
/home:1 Access to XMLHttpRequest at 'https://api.digital-garden.nudgepixels.com/api/auth/user/v1/is-authenticated' from origin 'https://www.memorylink.app' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

background.js:404 error in the uploadHistoryItemMutation Error: [Request ID: 43667bca1b691210] Server Error
at Ig.mutationInner (background.js:382:47975)
at async Ig.processMutationQueue (background.js:382:48268)

auth-loading-skeleton-pT8VgB8p.js:445 Uncaught (in promise) Error: [CONVEX M(chromeExtension/mutations/createUrlPrimitives:createUrlPrimitivesMutation)] [Request ID: 395912a7cd8be2f4] Server Error
Called by client
at i9.mutation (auth-loading-skeleton-pT8VgB8p.js:445:39229)
/home:1 Access to XMLHttpRequest at 'https://api.digital-garden.nudgepixels.com/api/auth/user/v1/is-authenticated' from origin 'https://www.memorylink.app' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

background.js:404 error in the uploadHistoryItemMutation Error: [Request ID: 43667bca1b691210] Server Error
at Ig.mutationInner (background.js:382:47975)
at async Ig.processMutationQueue (background.js:382:48268)

auth-loading-skeleton-pT8VgB8p.js:445 Uncaught (in promise) Error: [CONVEX M(chromeExtension/mutations/createUrlPrimitives:createUrlPrimitivesMutation)] [Request ID: 395912a7cd8be2f4] Server Error
Called by client
at i9.mutation (auth-loading-skeleton-pT8VgB8p.js:445:39229)

Did you find this page helpful?