CabalDAOC
Convex Community2y ago
23 replies
CabalDAO

How to use an mutation in a preview deployment setup

Thanks - ok - so i would write something like api.mutations.myFunctionName? And how would that fit into a deploy integration where I am importing data to preview first? I.e. where would it go in the deploy command:
npx convex deploy --cmd 'npm run build' && if [ "$VERCEL_ENV" == "preview" ]; then npx convex import --preview-name "$VERCEL_GIT_COMMIT_REF" ./data/mock-data/rtp_preview_snapshot.zip; fi
Was this page helpful?