prisma-client-go icon indicating copy to clipboard operation
prisma-client-go copied to clipboard

WARNING: env var which was defined in the Prisma schema is not setDATABASE_URL

Open RalphLincoln opened this issue 1 year ago • 3 comments

RalphLincoln avatar Apr 18 '24 15:04 RalphLincoln

Can you provide more information? Are you actually running into an error? Or are you just seeing this warning but it still works?

steebchen avatar Apr 18 '24 20:04 steebchen

Hey @steebchen , Actually it is just showing this warning.

➜  go run main.go
WARNING: env var which was defined in the Prisma schema is not setDATABASE_URL
2024/05/24 12:55:08 Connected to database
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:   export GIN_MODE=release
 - using code:  gin.SetMode(gin.ReleaseMode)

I have DATABASE_URL set in .env file and db push is working fine and database is also connecting as expected.

kxnakr avatar May 24 '24 07:05 kxnakr

Ah thanks for this. Then all is good. I will figure out how to hide this warning as it is not actually true that anything is missing, thanks

steebchen avatar May 24 '24 15:05 steebchen