question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable development builds

See original GitHub issue

My 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

  1. set the value of a variable differently in development and production
  2. have the homepage print the value of that variable
  3. run npm run build
  4. start your bundle
  5. observe that your production value is displayed

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
JDWong-wagcommented, Dec 18, 2018

Exactly! That there is no option to choose the build environment file or at least have it take values from .env.development instead

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found