Enable development builds
See original GitHub issueMy project uses development builds to qa the create-react-app based app before production deployment.
This section of the guide mentions that the build
command only pulls from production env files.
https://facebook.github.io/create-react-app/docs/adding-custom-environment-variables#what-other-env-files-can-be-used
Is there a way to build using .env.development
instead for QA purposes?
Is this a bug report?
no
Did you try recovering your dependencies?
no
Which terms did you search for in User Guide?
development build
Environment
n/a
Steps to Reproduce
- set the value of a variable differently in development and production
- have the homepage print the value of that variable
- run
npm run build
- start your bundle
- observe that your production value is displayed
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Enable development build via script - Unity Forum
development. The class contains most settings you can make in the Build Settings window and allows you to change them from scripts.
Read more >Configure on-device developer options - Android Developers
To enable developer options, tap the Build Number option 7 times. You can find this option in one of the following locations, depending...
Read more >How to Unlock Enable Developer Options On An Android Phone
Android phones come equipped with the ability to enable Developer ... G6 later: Settings > About phone > Software info > Build number....
Read more >Enabling Developer Mode on a device
You can Build and Run from Xcode without further prompts to enable Developer Mode. On watchOS, you enable Developer Mode in the same...
Read more >How do I turn on the Developer Options menu on ... - Samsung
1 Go to "Settings" · 2 Tap "About device" or "About phone" · 3 Tap “Software information” · 4 Tap “Build number” seven...
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 FreeTop 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
Top GitHub Comments
https://facebook.github.io/create-react-app/docs/deployment#customizing-environment-variables-for-arbitrary-build-environments
this section should help!
Exactly! That there is no option to choose the build environment file or at least have it take values from
.env.development
instead