vercel.json
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"buildCommand": "if [ \"$VERCEL_ENV\" = \"production\" ]; then npx convex deploy -y && npm run build; else npx convex deploy -y --check-build-environment disable && npm run build; fi",
"ignoreCommand": "if [ -z \"$VERCEL_GIT_COMMIT_REF\" ] || [ \"$VERCEL_GIT_COMMIT_REF\" = \"develop\" ] || [ \"$VERCEL_GIT_COMMIT_REF\" = \"main\" ]; then exit 1; else exit 0; fi"
}