Skip to content

Parsing of string encapsulated environment variables is broken #1340

Open
@ZanzyTHEbar

Description

@ZanzyTHEbar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions