nisabmohd / ChatGPT

I've developed a ChatGPT clone using Next.js 14, Shadcn-UI, Prisma ORM, and integrated it with the OpenAI API. It offers a user-friendly conversational AI experience.
Apache License 2.0
306 stars 123 forks source link

Invalid `prisma.user.findUnique()` invocation: error: Environment variable not found: DATABASE_URL. --> schema.prisma:7 | 6 | provider = "mongodb" 7 | url = env("DATABASE_URL") | Validation Error Count: 1 #19

Closed zdwork closed 1 year ago

zdwork commented 1 year ago

Invalid prisma.user.findUnique() invocation:

error: Environment variable not found: DATABASE_URL. --> schema.prisma:7 6 provider = "mongodb" 7 url = env("DATABASE_URL")

Validation Error Count: 1

nisabmohd commented 1 year ago

Please add .env file in project where add the database connection url for MongoDB