Fred The Doggy
02/01/2022, 12:25 AMdatasource db {
provider = "mysql"
url = env("DATABASE_URL")
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["dataProxy"]
}
to be exact, and am getting
error: Error validating datasource `db`: the URL must start with the protocol `mysql://`.
--> schema.prisma:6
Leonard
02/01/2022, 4:57 PMDATABASE_URL
from .env
Leonard
02/01/2022, 4:59 PMFred The Doggy
02/02/2022, 12:57 AM<prisma://aws-us-east-1.prisma-data.com/?api_key=XXXX>
Fred The Doggy
02/02/2022, 12:57 AMFred The Doggy
02/02/2022, 12:58 AMPRISMA_CLIENT_ENGINE_TYPE='dataproxy'
setnikolasburk
nikolasburk
PRISMA_CLIENT_ENGINE_TYPE='dataproxy'
env var has not been set properly. Since you mentioned you did set it, can you maybe double-check that it has indeed been set? If it’s still not working, we’d definitely want to look into this to help you resolve the issue 🙂