David AlonsoD
Convex Community2y ago
3 replies
David Alonso

Recommended way to run migration workflow

I was wondering if the recommended way to deploy to vercel if we add migrations to our migrations.ts file is the following:
npx convex deploy --cmd 'turbo run build && npx convex run migrations

wanna make sure I get the order right. Also I guess the --prod flag is not necessary if we have the right env variables set in vercel, and that way it'll work for other envs like staging as well

And if I have a migrations table I shouldn't be worried about a migration happening twice either I assume
Was this page helpful?