Skip to content

Can't get .env.development && .env.production variable #11144

Description

@jiujiaonuannan

Describe the bug

(Write your answer here.)

Did you try recovering your dependencies?

(Write your answer here.)

Which terms did you search for in User Guide?

(Write your answer here if relevant.)

Environment

(paste the output of the command here.)

Steps to reproduce

(Write your steps here:)

  1. add .env.developent in root path
  2. add content into the .env.developent

REACT_APP_CHAIN_ID = "42"

# 10+ nodes balanced, US/EU
REACT_APP_NODE_1 = "https://kovan.infura.io"

# 10+ nodes balanced, US/EU
REACT_APP_NODE_2 = "https://kovan.infura.io"

# 10+ nodes balanced in each region, global
REACT_APP_NODE_3 = "https://kovan.infura.io"
  1. in the App.js to process.env.REACT_APP_NODE_1 can't get the data, is undefined

Expected behavior

(Write what you thought would happen.)

Actual behavior

(Write what happened. Please add screenshots!)

Reproducible demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

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