So I am using Prisma as an ORM on my project to co...
# orm-help
c
So I am using Prisma as an ORM on my project to communicate with the database that I set up with AWS. Not happy with the AWS service I am now switching my database to
<http://railway.app|railway.app>
- which is working out well for me. However, I set up a Prisma
data proxy
on my app with the AWS connection string, and now that I don’t seem to want/ need it anymore I removed it but getting an error:
Copy code
error - InvalidDatasourceError: Datasource URL should use Prisma:// protocol. 
If you are not using the Data Proxy, remove the data proxy from the preview features in your 
schema and ensure that PRISMA_CLIENT_ENGINE_TYPE environment variable is not set to data proxy.
Since getting the error I have removed
previewFeatures = ["dataProxy"]
from the
prisma.schema
file to make it look like this (back to what it was before configuring with dataproxy):
Copy code
generator client {
      provider = "prisma-client-js"
}

datasource db {
      provider = "postgresql"
      url= env("DATABASE_URL")
}
but the error still persists, how do I fix this?
s
you have to do a
prisma generate
again to regenerate the client, this time without dataproxy
n
Is this fixed after generating PrismaClient again?
c
Thanks
prisma generate
did the trick. Thanks guys 🙏