dilanx / craco

Create React App Configuration Override, an easy and comprehensible configuration layer for Create React App.
https://craco.js.org
Apache License 2.0
7.44k stars 499 forks source link

Modify default path for .env files when using react-scripts (CRA)? #414

Open nirpeled opened 2 years ago

nirpeled commented 2 years ago

Seems like react-scripts (CRA) is using an hard-coded path for reading the .env files (reading from project's folder).

How can I use craco or a craco plugin to override it?

Thanks :)

dilanx commented 2 years ago

I don't believe craco supports this at the moment, but I'll look into adding this.