Pre deploy
elixirdev13
HOBBYOP
a month ago
how can i migrate my prisma to outside supabase database it always faill to deploy
5 Replies
team
HOBBY
a month ago
i can help,
elixirdev13
HOBBYOP
a month ago
elixirdev13
HOBBYOP
25 days ago
pls help
elixirdev13
pls help
25 days ago
Hey, have you tried to add a migrate:deploy script to your package.json and call it from there instead?
For example add it to your scripts
{
"scripts": {
"migrate:deploy": "DATABASE_URL=\"$PRISMA_MIGRATE_DATABASE_URL\" prisma migrate deploy --schema apps/api/prisma/schema.prisma"
}
}and change the predeploy command to npm run migrate:deploy.