-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
process.env and Bun.env have different results #15359
Comments
Can you share a minimal reproduction? I'm not seeing this behavior. // env.js
console.log("bun", Bun.env.NODE_ENV);
console.log("process", process.env.NODE_ENV);
|
Maybe this issue comes during build?
|
I am pretty sure that's the issue. Bun build inlines The solution should be for bun to not inline |
Okay, this case will be closed. |
What version of Bun is running?
1.1.36+ededc168c
What platform is your computer?
Linux 6.1.0-27-cloud-amd64 x86_64 unknown
What steps can reproduce the bug?
This bug was discovered when my RestAPI app displayed the development page. After investigating, we found that
process.env.NODE_ENV
always returned "development," regardless of what we tried to set—it always produced the same result.What is the expected behavior?
What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: