Skip to content

Compose database URL from several ENV variables in schema.prisma file #12600

Answered by nurul3101
MurzNN asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@MurzNN
Comment options

@janpio
Comment options

@MurzNN
Comment options

@rolandboon
Comment options

Answer selected by MurzNN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants