I just got setup with my first t3 app ever, sorry if I'm a noob. I've created two different discord apps for auth. The one I have in my dev environment works perfectly and I'm able to sign in. I've got the environment variables and redirect url setup correctly. I also have a deployed production one which is hosted on vercel (https://t3-scouter.vercel.app/). I set it up the exact same way, setup the new environment variables, and the new redirect URL as: https://t3-scouter.vercel.app/api/auth/callback/discord instead of localhost:3000/. And I get this error.
I tried switching from sqlite to mysql on planetscale (like the tutorial), and it all seems ot be working locally, but for some reason the deployed one doesn't work. My DATABASE_URL is the same in my dev and prod environments right now since I'm just trying to get it to work, and then I'll go and create a second prod db over at planetscale.
prisma:error Invalid `prisma.account.findUnique()` invocation:error: Error validating datasource `db`: the URL must start with the protocol `file:`. --> schema.prisma:14 | 13 | // https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#string14 | url = env("DATABASE_URL") | Validation Error Count: 1[next-auth][error][adapter_error_getUserByAccount] https://next-auth.js.org/errors#adapter_error_getuserbyaccount Invalid `prisma.account.findUnique()` invocation:error: Error validating datasource `db`: the URL must start with the protocol `file:`. --> schema.prisma:14 | 13 | // https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#string14 | url = env("DATABASE_URL") | there's more but i hit my character limit on this question...}
prisma:error Invalid `prisma.account.findUnique()` invocation:error: Error validating datasource `db`: the URL must start with the protocol `file:`. --> schema.prisma:14 | 13 | // https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#string14 | url = env("DATABASE_URL") | Validation Error Count: 1[next-auth][error][adapter_error_getUserByAccount] https://next-auth.js.org/errors#adapter_error_getuserbyaccount Invalid `prisma.account.findUnique()` invocation:error: Error validating datasource `db`: the URL must start with the protocol `file:`. --> schema.prisma:14 | 13 | // https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#string14 | url = env("DATABASE_URL") | there's more but i hit my character limit on this question...}