You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am currently receiving an error when trying to add Prisma to an existing Next.js project. When I do the command "npx prisma db pull" I receive a P1012 error stating that my DATABASE_URL environment variable cannot be found. I have double-checked that my .env file is in my root directory and that my schema.prisma is also visible. My database url is also correct as far as I know. Any help would be appreciated!
How to reproduce (optional)
Expected behavior (optional)
No response
Information about Prisma Schema, Client Queries and Environment (optional)
// Add your schema.prisma
// Add any relevant Prisma Client queries here
OS:
Database:
Node.js version:
Run prisma -v to see your Prisma version and paste it
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Question
Hi, I am currently receiving an error when trying to add Prisma to an existing Next.js project. When I do the command "npx prisma db pull" I receive a P1012 error stating that my DATABASE_URL environment variable cannot be found. I have double-checked that my .env file is in my root directory and that my schema.prisma is also visible. My database url is also correct as far as I know. Any help would be appreciated!
How to reproduce (optional)
Expected behavior (optional)
No response
Information about Prisma Schema, Client Queries and Environment (optional)
// Add your schema.prisma
// Add any relevant Prisma Client queries here
OS:
Database:
Node.js version:
Run
prisma -v
to see your Prisma version and paste itBeta Was this translation helpful? Give feedback.
All reactions