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.

Native .env file support?

See original GitHub issue

I’m using .env files to do all of my secret hiding. It kinda stinks to have to translate the values to JSON in the settings folder. Is it feasible/possible to be able to access .env file values at the root of the folder to be accessible by the extension? Maybe via {{$dotenv PORT}} for a file named .env and {{$dotenvLocal PORT}} for a .env.local file?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

16reactions
Huachaocommented, Oct 17, 2019

@mattwaler @Ruegen @yfwz100 @devalnor I have supported the {{$dotenv variableName}} syntax, and you just need to put the .env file in the same folder of your .http file. However, .env.local file is not supported currently.

0reactions
tomdavidsoncommented, Jan 16, 2020

@mattwaler thanks, ill open up a new issue then - #489

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Setup .env File In Your React Native Application.
.env files are one great way of managing your third party keys, especially when you intend to use them across various parts of...
Read more >
How to use .env file in a React Native Application
In this post, we are going to see how to create and use .env file in react native. First, we need to install...
Read more >
Understanding React Native env variables - LogRocket Blog
Variables can play different roles in React Native. For example, you can use CSS variables in React Native to store and implement custom...
Read more >
react-native-dotenv - npm
This package now supports environment specific variables. This means you may now import environment variables from multiple files, i.e. .env , .
Read more >
Setting environment variable in react-native? - Stack Overflow
To answer how to expose your environment to react-native , I suggest using Babel's babel-plugin-transform-inline-environment-variables.
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