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

.env support with the data proxy

Open matthewmueller opened this issue 4 years ago • 2 comments

Right now dotenv doesn't seem to be loaded in data proxy mode

panic: no connection string found

goroutine 1 [running]:
demo/prisma/db.NewClient()
        /Users/m/dev/src/github.com/prisma/go-client/prisma/db/db_gen.go:1396 +0x247
main.main()
        /Users/m/dev/src/github.com/prisma/go-client/main.go:11 +0x55
exit status 2

matthewmueller avatar Nov 01 '21 23:11 matthewmueller

Can you please describe where your prisma.schema and your env file is located?

steebchen avatar Nov 02 '21 07:11 steebchen

  • prisma/schema.prisma
  • .env

matthewmueller avatar Nov 02 '21 16:11 matthewmueller