You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Datasource url should be optionally dynamic (preserve env()) #287
Currently prisma generate with a datasource of env() appears to write in the value at build time. This breaks stateless builds (which are always runtime configurable and doesn't require prevent building between environments).
It would be better if env("NAME") could instead be built into process.env["NAME"].
Hi @timsuchanek, it seems like the generated client still (or possibly again?) contains the database connection string. Is there something other than creating a post-postinstall script that replaces the connection string with a call to read from process.env that we can do on our side?
Activity
Errorname commentedon Jul 30, 2019
Hello! There is a discussion about this here: #227, you can explain your use case there to push this subject forward
timsuchanek commentedon Aug 5, 2019
Fixed in latest version.
kldzj commentedon Jun 16, 2020
Hi @timsuchanek, it seems like the generated client still (or possibly again?) contains the database connection string. Is there something other than creating a post-postinstall script that replaces the connection string with a call to read from process.env that we can do on our side?
refactor(operations): unify registries, remove dead schema/ColumnBuil…