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.

Consider replacing Cred.js with environment variables

See original GitHub issue

Taking this is not a good practice to hard code credentials, consider using environment variables for such purpose. This will eliminate the requirement of Cred.js file completely.

See my pull request with this update. #5 (cc4a799ac9bb1645e595515f5e61dfba4196abe5)

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
emadehsancommented, Sep 4, 2017

@jabranr I have merged 2 out of 3 of your commits. Excluded is the one with ENV variables.

1reaction
jabranrcommented, Aug 30, 2017

Agreed. Let’s keep it as it is for now. I will revert that particular commit and then we can go forward with rest of the updates.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Environment Variables in Node.js for App Configuration ...
Environment variables are considered the best way to configure applications, with the main benefits being: Secrets such as database credentials ...
Read more >
Setting Environment Variables for Node to retrieve
You can set the environment variable through process global variable as follows: process.env['NODE_ENV'] = 'production';.
Read more >
Various ways of handling environment variables in React and ...
It's always recommended to use environment variables to keep the information secure and you should never write them directly in your code.
Read more >
Managing Front-end JavaScript Environment Variables
Learn why, when, and how to use environment variables for front-end JavaScript applications built with webpack, parcel, Create React App, ...
Read more >
Node.js Everywhere with Environment Variables! - Medium
Your environment variable isn't there because we need to pass them in. Let's consider some ways we can fix this. using the command...
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