Deploying the t3-App on Vercel
I'm having a t3-app with the database hosted on planetscale and the app on vercel. Everything works well on the dev server but I cant make the connection to the db once I deploy it to vercel. I have mysql as my provider, and relationMode set to prisma. I have added the env variables on the .env file and on vercel dashboard. However once I deploy it to vercel I'm getting this error on the web console.
8 Replies
Can you show the Prisma file?
If you mean the file where I export prisma client, or you meant the schema ?
schema file
here it is
check the env url
on vercel
strange enough the env variables are correct, I even added the planetscale integration on vercel so that it imports them correctly
@Tony___ you haven't done npx prisma db push
you did it when the provider was sqlite (the default for create-t3-app)
once you change your schema always run npx prisma db push
then it will work
yeah that worked Thanks mate