Docs
Migrate the Schema

Migrate the Schema

Now that you’ve added the connection string to the .env file you have to push the schema to the Database.

Run this command to push the schema to your database.

npx prisma db push

After you run this you’ll be able to see the Tables your Database dashboard

Now run this command

npx prisma generate

Now go ahead and signup using the Form. If everything was done properly you’ll see the user on the Database.

💡

Notes: Make sure you run Prisma generate command before the final build

prisma generate

then

npm run build

Also, while deploying your app on Vercel, edit build command and make it like the screenshot below:

prisma-vercel