Prisma not finding Database URL env variable #21544
Replies: 2 comments
-
|
Hi @ThomasAlban 👋 Thank you for raising this question. Can you check that you are running the command in the root project and not in another directory also is it possible to share a minimal reproduction of this in a repository so I can investigate this further? |
Beta Was this translation helpful? Give feedback.
-
|
Hi there, To keep our discussions organized and focused on the most relevant topics, we’re reviewing and tidying up our backlog. As part of this process, we’re closing discussions that haven’t had any recent activity and appear to be outdated. If this discussion is still important to you or unresolved, we’d love to hear from you! Feel free to reopen it or start a new one with updated details. For more details about our priorities and vision for the future of Prisma ORM, check out our latest blog post: https://www.prisma.io/blog/prisma-orm-manifesto. Thank you for your understanding and being part of the community! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Hi,
When I run
npx prisma db pushI get this error:I'm using this with SvelteKit, and have already run
npx prisma generateandnpm run devto generate types (as suggested online), which both seemed to work fine. Howevernpx prisma db pushstill gives me this error.I have also checked that I have a
.envfile in the root of my project which contains the database url and I've checked all the syntax.Any help appreciated!
Beta Was this translation helpful? Give feedback.
All reactions