Skip to content
New issue

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

ERD not generated when DISABLE_ERD=false is set in .env file #225

Closed
mipicdev opened this issue Jul 20, 2023 · 1 comment
Closed

ERD not generated when DISABLE_ERD=false is set in .env file #225

mipicdev opened this issue Jul 20, 2023 · 1 comment

Comments

@mipicdev
Copy link

Issue Type:

Bug

Description:

When I set DISABLE_ERD=false in my .env file, no ERD is generated, which is contrary to the expected behavior. When I remove this variable, the ERD generation works again as expected.

Environment:

  • OS: Ubunutu
  • Node.js version: 18.16.1
  • Prisma version: 4.14.0
  • prisma-erd-generator version: 1.8.0

Steps to reproduce:

  1. Add DISABLE_ERD=false to the .env file.
  2. Run the ERD generation process.

Expected behavior:

When DISABLE_ERD=false is set in the .env file, the ERD should be generated.

Actual behavior:

No ERD is generated when DISABLE_ERD=false is set.

Relevant code:

.env file:

DATABASE_URL="file:./dev.db"
DISABLE_ERD=false

schema.prisma file:

generator erd {
  provider = "prisma-erd-generator"
  output   = "../prisma/erd.png"
}
@lucia-w
Copy link
Contributor

lucia-w commented Aug 4, 2023

I think this PR might fix the issue #227

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants