Skip to content

Feature request - Support different env configs #1343

Closed
@tuchk4

Description

Read different .env configs according to current command (start / test / build).

  • Read .env.dev when npm start and npm test
  • Read .env.prod when npm run build

By default (if custom config does not exist) read env variables from .env file.

dotenv is using for config parsing.

Not sure about npm test - what config file should be accepted.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions