Skip to content

env value loading #10457

Closed
Closed
@steveoh

Description

@steveoh

Environment values that are set with an npm script like env-cmd -f ./.env.stage npm run build are overwritten if a .env.production file is present with different values.

possibly related to #9037

I am unsure how to use .env.development, .env.stage, and .env.production files effectively.

This is problematic for a few reasons but mainly since development and prod environments run on the root but staging runs on a /folder. Setting REACT_APP_BASENAME becomes hard to do.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions