Skip to content

Commit

Permalink
Merge pull request #410 from julianbraha/main
Browse files Browse the repository at this point in the history
Replace dotenv with dotenvy
  • Loading branch information
Brendonovich authored Nov 13, 2023
2 parents 78cfbef + 19cc21f commit e7d7475
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ specta = { optional = true, workspace = true, features = [

# features = "rspc"
rspc = { optional = true, workspace = true }
dotenv = "0.15.0"
dotenvy = "0.15.7"
2 changes: 1 addition & 1 deletion crates/lib/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ impl PrismaClientInternals {
let url = match url {
Some(url) => url,
None => {
let url = match source.load_url(|key| dotenv::var(key).ok()) {
let url = match source.load_url(|key| dotenvy::var(key).ok()) {
Ok(url) => Some(url),
Err(_) => source.load_shadow_database_url()?,
}
Expand Down
2 changes: 1 addition & 1 deletion examples/axum-graphql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ prisma-client-rust = { workspace = true, features = ["migrations", "sqlite"] }
tokio = { version = "1.0", features = ["full"] }
serde = { version = "1.0", features = ["derive"] }
axum = "0.5.1"
dotenv = "0.15.0"
dotenvy = "0.15.7"
async-graphql = "3.0.12"
async-graphql-axum = "3.0.31"

1 comment on commit e7d7475

@vercel
Copy link

@vercel vercel bot commented on e7d7475 Nov 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.