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.

Keep process.env.* intact

See original GitHub issue

Is there any way that the obfuscator simply ignore all process.env.*.

I’m trying the following in the online playground (https://obfuscator.io/)

process.env.NODE_ENV

As a result a get something like this:

process[_0x3ab67a(0x74)][_0x3ab67a(0x6b)]);

I used the reservedNames as well but to no avail.

Is there a way to let the obfuscator know that this should stay as it is

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
BlackYuziacommented, Mar 14, 2021

@sanex3339 maybe he mean what process[_0x3ab67a(0x74)][_0x3ab67a(0x6b)]); return undefined? I didn’t test it… so I could mistake 👀

0reactions
TrejGuncommented, Jun 2, 2022

@sanex3339

we have the same problem with the process.env and webpack. Webpack replaces process.env.VAR with value and can’t do that properly when it obfuscate to process[_0x3ab67a(0x74)][_0x3ab67a(0x6b)]);

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Handle Runtime Environment Variables with React
One of the most straightforward solution that I ended up with to keep the entire application build intact was to use a configuration...
Read more >
process.env: What it is and why/when/how to use it effectively
The process.env global variable is injected by the Node at runtime for your application to use and it represents the state of the...
Read more >
Is it possible to pass environment variables from child to ...
No, it's not possible. Not without some kind of workaround. Environment variables can only be passed from parent to child (as part of ......
Read more >
Can i store Objects in process.env - node.js - Stack Overflow
No, you can't store objects in process.env because it stores environment variables like PATH, SHELL, TMPDIR and others, which are represented by String...
Read more >
[V13] Set process.env environment variables as strings #395
js is that process.env variables are always stored and accessed as strings. To keep consistency with node.js behavior and to make testing easier ......
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