Closed createdbymahmood closed 2 years ago
I want to change the .env file path in a CRA project and this is how my config-overrides.js looks like:
.env
config-overrides.js
module.exports = { paths: (paths, env) => { const p = { dotenv: "./config/.env", }; return p; }, };
but it still loads the env file in the root of the project.
"react-app-rewired": "^2.1.8" "react-scripts": "4.0.3",
Any solution for this @createdbymahmood ?
I want to change the
.env
file path in a CRA project and this is how myconfig-overrides.js
looks like:but it still loads the env file in the root of the project.