Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing of string encapsulated environment variables is broken #1340

Open
ZanzyTHEbar opened this issue Aug 27, 2024 · 0 comments
Open

Parsing of string encapsulated environment variables is broken #1340

ZanzyTHEbar opened this issue Aug 27, 2024 · 0 comments

Comments

@ZanzyTHEbar
Copy link

Hey ya'll. This library was working perfectly before - but for some reason now it is not loading my .env file. It is literally interpreting the env("DATABASE_URL"). I get the error:

error: Error validating datasource `db`: the URL must start with the protocol `postgresql://` or `postgres://`.

My env vars are correct and verified and my prisma schema is also correct and verified.

Edit: When i remove the surrounding "" from my env var, it works. Seems the "" in an env var mess it up.

Ex:

.env
Doesn't work

DATABASE_URL="https://example.com:8080"

.env
Does work

DATABASE_URL=https://example.com:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant