Skip to content

Reload the app when .env file is edited #870

@furlanrapha

Description

@furlanrapha

Description

The environment variables are not being loaded correctly

Expected behavior

I want to use process.env + .env file to load my environment variables.

Actual behavior

I'm trying to use process.env but it have just an empty Object.

The NODE_ENV doesn't exist either.

Environment

Run these commands in the project folder and fill in their results:

  1. npm ls react-scripts (if you haven’t ejected):
    └── [email protected]
  2. node -v:
    v6.7.0
  3. npm -v:
    3.10.8

Then, specify:

  1. Operating system: Windows 10 Pro
  2. Browser and version: Chrome 53.0.2785.143 m

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