expand local variables not working.
See original GitHub issuerunning into an issue with expanding local variables inside an env file. working in v9.0.3 with this setup but seems to fail once I’ve moved over to a new CRA with env-cmd version 10.1.0
Request URL: http://localhost:5000/$REACT_APP_API_ENV_ORIGIN/
.env file:
REACT_APP_API_ENV_ORIGIN=someAPIURL.com
REACT_APP_API_ENV=$REACT_APP_API_ENV_ORIGIN
package.json:
"scripts": {
"build:integration": "env-cmd -f .env.integration craco build"
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Visual Studio 2015 Debugging: Can't expand local variables?
I'm trying to do this in 2015 now, but when I hover over a variable, the box that shows up only says "(local...
Read more >Variables not expanding correctly in application path in QOS ...
Hi, I'm trying to use GPO to marking packets for needed programs. I used Windows 10 21H2 Pro in AD environment. And what...
Read more >Can't expand local variables in web site project
After updating to 15.7.1 VS pro will no longer expand variables when setting a breakpoint. * Creating a new ASP.net Web site (Razor...
Read more >Setlocal - Local variables - Windows CMD - SS64.com
DisableDelayedExpansion Expand variables at parse time rather than at execution time. ... Although global variables are easy to work with they are not...
Read more >Variables in batch file not being set when inside IF?
The following example demonstrates the problem with immediate variable expansion: set VAR=before if "%VAR%" == "before" ( set VAR=after if ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Possibly fixed in: https://github.com/toddbluhm/env-cmd/pull/253
This would be a great feature.
@GeorgiosP Just tried this on v9.0.3 and the var was not expanded, so it may be up the tool chain somewhere. Not sure about CRA, but Next.js does this out-of-the-box.