-
I have database access credentials in separate ENV variables like
So, can I use environment variables as part of If not, is there any other ways to compose database url from several ENV variables? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
It is possible to use a single ENV variable as database url like this:
But does it work for concatenate several env variables? |
Beta Was this translation helpful? Give feedback.
-
Hey @MurzNN 👋 Another alternative is to override database URL programmatically as mentioned here. |
Beta Was this translation helpful? Give feedback.
Hey @MurzNN 👋
Are you looking to do something like this - Expanding Variables in env file?
Another alternative is to override database URL programmatically as mentioned here.
You could try constructing your database url before passing it in the
PrismaClient
Instance.