Im using planestscale with prisma on a next js app that I'am trying to host on vercel but it runs on localhost without any error but as soon as I go to depolyment I count this error Authentication failed against database server at `aws.connect.psdb.cloud`, the provided database credentials for `name` are not valid.
I added the same env variable to vercel and Ihave the variable in an .env file
DATABASE_URL='mysql://<um>:<pw>Q@aws.connect.psdb.cloud/<db-name>?sslaccept=strict'
note: I replaced the placeholders
and this is my schema.prisma
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "mysql"
url = env("DATABASE_URL")
relationMode = "prisma"
}
why does'nt it work the same in deployment