I have been trying everything, but I can't succeed. I need to use .env file during development, with react-scripts start
I have been following this: https://create-react-app.dev/docs/adding-custom-environment-variables/ and I keep getting process is not defined.
I tried countless solutions found here, but no luck. I read that it injects the variables during build, so there is no way at all to use it during development?
Last thing I have tried is env-cmd
My script looks like this:
"start": "env-cmd -f .env.development react-scripts start",
still it says process is undefined. Any help is appreciated thanks