Skip to content

[RFC][Dotenv] Introduce DOTENV_OVERLOAD #29170

Closed
@ro0NL

Description

@ro0NL

Description
Now .env is the new .env.dist, im kinda stuck with local infrastructure.

The setup auto-detects .env and creates real envs as such in the container being spinned up. This totally breaks things as .env.local is not being loaded at this point.

To keep things simple (i cant really control this yet - lando/lando#994) it would be nice to control overloading for now with a new DOTENV_OVERLOAD=1 var.

It would be auto-detected in Dotenv::loadEnv() and toggles load() vs overload() as such.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    DotenvRFCRFC = Request For Comments (proposals about features that you want to be discussed)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions