We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prisma schema doesnt find the env variable
9.2
prisma migrate dev --preview-feature Prisma schema loaded from src\prisma\schema.prisma Error: Schema validation error - Error (query-engine-node-api library) Error code: P1012 error: Environment variable not found: DATABASE_URL. --> schema.prisma:6 | 5 | provider = "sqlite" 6 | url = env("DATABASE_URL") | Validation Error Count: 1 [Context: getConfig] Prisma CLI Version : 4.5.0
The text was updated successfully, but these errors were encountered:
Are there any workarounds to fix the issue? thanks.
Sorry, something went wrong.
I found a workaround by using dotenv cli as shown in prisma docs, you can find information here
In my case: dotenv -e .env.development.local -- prisma migrate dev --preview-feature
dotenv -e .env.development.local -- prisma migrate dev --preview-feature
@HijackHornet
Thank you for good information. We will reflect it after correction soon
Still not fixed
ljlm0402
No branches or pull requests
Describe the Bug (버그 설명)
prisma schema doesnt find the env variable
Version to Reproduce (현재 사용한 버전)
9.2
Steps to Reproduce (재현 순서)
The text was updated successfully, but these errors were encountered: