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.

Feature request - Support different env configs

See original GitHub issue

Read different .env configs according to current command (start / test / build).

  • Read .env.dev when npm start and npm test
  • Read .env.prod when npm run build

By default (if custom config does not exist) read env variables from .env file.

dotenv is using for config parsing.

Not sure about npm test - what config file should be accepted.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:16
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

13reactions
tuchk4commented, Jan 3, 2017

Provide simple PR with feature implementation

4reactions
gaearoncommented, May 12, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

Support variable expansion in config.yml - CircleCI Ideas
``results in ${CMAKE_HOME}/bin/cmake.exe unknown file or dirctory.I don't want to repeat C:/Users/circleci/thirdparty in different environment variables.
Read more >
[feature request] Set GTM ID via wp-config.php | WordPress.org
Hi, it would be great, if we could set some settings, mostly the gtm id, ... integration and different configuration for different environments...
Read more >
GitLab Runner feature flags
Feature flag Default value Deprecated FF_CMD_DISABLE_DELAYED_ERROR_LEVEL_EXPANSION false No FF_NETWORK_PER_BUILD false No FF_USE_LEGACY_KUBERNETES_EXECUTION_STRATEGY false No
Read more >
Environments · Cloudflare Workers docs
You cannot specify multiple environments with the same name. If this were allowed, publishing each environment would overwrite your previously ...
Read more >
Core Features - Spring
If the file has an encoding other than UTF-8, you can set spring.banner.charset . Inside your banner.txt file, you can use any key...
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