Skip to content

Documentation for npm run build #4111

Closed
@ndao

Description

@ndao

Googling around I find articles like these talking about using.env file when npm run build. However, I don't see any official documentation for that on this repo.

https://medium.com/@tacomanator/environments-with-create-react-app-7b645312c09d
https://serverless-stack.com/chapters/environments-in-create-react-app.html

So if I have 3 .env files: .env, .env.test, .env.production, what is the proper/official way to specify a .env file when npm run build?

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