Tondi
CCConvex Community
•Created by Tondi on 2/15/2025 in #support-community
Running "npx convex deploy --cmd 'next build'" command fails the build
I don't know, I just thought that it works that way, given that vercel has only one build command.
But thanks for the shell script, I think it unblocked me.
27 replies
CCConvex Community
•Created by Tondi on 2/15/2025 in #support-community
Running "npx convex deploy --cmd 'next build'" command fails the build
I thought that "npx convex deploy --cmd ..." checks that already. if there is CONVEX_DEPLOY_KEY set, deploy to prod, if not just run npm build.
Currently I'm the only developer working on the project, I don't think I need Pro plan or Previews. I think I can do with the 2 prod and dev convex dbs: work with dev until a feature is ready then push to prod.
I just want the right command for preview deployments vs production to be handled.
27 replies
CCConvex Community
•Created by Tondi on 2/15/2025 in #support-community
Running "npx convex deploy --cmd 'next build'" command fails the build
Yes, for vercel.
27 replies
CCConvex Community
•Created by Tondi on 2/15/2025 in #support-community
Running "npx convex deploy --cmd 'next build'" command fails the build
dev, i mean staging.
In vercel platform,there can only be one build command per project for both prod and staging. It's set to "npx convex deploy --cmd 'next build'" when I started getting the build failures.
I thought like the docs says, when CONVEX_DEPLOY_KEY is set only for prod, It updates the production deployment.
For staging build where CONVEX_DEPLOY_KEY is not set, I get a different error message:
27 replies
CCConvex Community
•Created by Tondi on 2/15/2025 in #support-community
Running "npx convex deploy --cmd 'next build'" command fails the build
The above one is for when I set CONVEX_DEPLOY_KEY both for prod and dev
27 replies
CCConvex Community
•Created by Tondi on 2/15/2025 in #support-community
Running "npx convex deploy --cmd 'next build'" command fails the build
all the commits I pushed after changing the build command in vercel, have failed build.
Here is the latest build logs attached.
27 replies
CCConvex Community
•Created by Tondi on 2/15/2025 in #support-community
Running "npx convex deploy --cmd 'next build'" command fails the build
setting it in vercel like the docs say: https://docs.convex.dev/production/hosting/vercel
27 replies