JeanPSF
JeanPSF
PPrisma
Created by JeanPSF on 6/3/2024 in #help-and-questions
schema env file
Is there a way to dinamically chose the env file that schema.prisma will use? For example:
datasource db {
provider = "mysql"
url = env("ADMIN_DATABASE_URL")
shadowDatabaseUrl = env("SHADOW_DATABASE_URL")
}
datasource db {
provider = "mysql"
url = env("ADMIN_DATABASE_URL")
shadowDatabaseUrl = env("SHADOW_DATABASE_URL")
}
datasource db {
provider = "mysql"
url = env.stage("ADMIN_DATABASE_URL")
shadowDatabaseUrl = env.stage("SHADOW_DATABASE_URL")
}
datasource db {
provider = "mysql"
url = env.stage("ADMIN_DATABASE_URL")
shadowDatabaseUrl = env.stage("SHADOW_DATABASE_URL")
}
datasource db {
provider = "mysql"
url = env.dev("ADMIN_DATABASE_URL")
shadowDatabaseUrl = env.dev("SHADOW_DATABASE_URL")
}
datasource db {
provider = "mysql"
url = env.dev("ADMIN_DATABASE_URL")
shadowDatabaseUrl = env.dev("SHADOW_DATABASE_URL")
}
.env
.stage.env
.dev.env
.env
.stage.env
.dev.env
3 replies