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.

Environment Variables - Blowing up

See original GitHub issue

So it appears I can’t add my own environment variables by simply adding require('dotenv').config() to index.js and added an .env file to the root of my create-react-app. Now it blows up creating all sorts of pain…such as it’s creating a package.json.lock file now and npm install is totally bombing:

screen shot 2017-06-07 at 10 52 28 pm

I don’t get this, so I must add REACT_APP in front of every environment variable? I simply want to create environment variables for my Amazon S3 and other things. I tried adding those via my own .env file and running dotenv

I’m creating some deployment scripts for travis in a deploy folder, and I need to be using custom environment variables for that for Amazon, ect.

Issue Analytics

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

github_iconTop GitHub Comments

Timercommented, Jun 8, 2017

The engines field is primarily used in PaaS environments like App Engine or Heroku.

Timercommented, Jun 8, 2017

@dschinkel you’ll need to change your global version, go ahead and run npm install -g npm@3

Read more comments on GitHub >

github_iconTop Results From Across the Web

On setenv() and Explosions – Michael Catanzaro's Blog
It means that if any other thread is calling getenv() at the same time that you call setenv() , one or the other...
Read more >
Support for environment variables as default #94 - GitHub
At the beginning, I was thinking of using classes with Fire but it quickly blows up due to the combinations. It quickly becomes...
Read more >
Environment Variables — GROMACS 2022.4 documentation
GROMACS automatically backs up old copies of files when trying to write a new file of the same name, and this variable controls...
Read more >
Ultimate Guide to Managing Mac and Linux Environment ...
The values of environment variables can control the behavior of an operating system, individual utilities such as Git, shell scripts, ...
Read more >
Amplify save environment variables to backend - Stack Overflow
If someone blew up mars, how screwed is earth? How is it possible to have black holes in the sub-atomic scale? Using Cavern...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found