Chris Bitoy
05/12/2022, 9:13 PM<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:
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):
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url= env("DATABASE_URL")
}
but the error still persists, how do I fix this?SJ
05/13/2022, 3:11 AMprisma generate again to regenerate the client, this time without dataproxyNurul
05/13/2022, 10:41 AMChris Bitoy
05/13/2022, 11:06 AMprisma generate did the trick. Thanks guys 🙏