-
-
Notifications
You must be signed in to change notification settings - Fork 603
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
fix(env): set mode after config loaded #4009
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #4009 +/- ##
==========================================
+ Coverage 90.87% 90.90% +0.02%
==========================================
Files 22 22
Lines 1688 1693 +5
Branches 486 490 +4
==========================================
+ Hits 1534 1539 +5
Misses 154 154
Continue to review full report in Codecov by Sentry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a corresponding test case?
Д̶а̶ к̶о̶н̶е̶ч̶н̶о̶, п̶о̶ч̶е̶м̶у̶ н̶е̶т̶...
ср, 22 нояб. 2023 г., 13:53 Nitin Kumar ***@***.***>:
… ***@***.**** commented on this pull request.
Can we add a corresponding test case?
—
Reply to this email directly, view it on GitHub
<#4009 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BBO6JJT6ELJBSZFK6X22KO3YFWOPHAVCNFSM6AAAAAA7O4FPIOVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTONBTGY4DCMZSGY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a bad idea, node-env and mode are different things and we already support another solution
@alexander-akait can you clarify what the other solution is? maybe we just need to update the docs to reflect it. |
After reading the code, it seems like the Issues like the one @mgnsm has reported (#3992) are occurring because the documentation isn't describing exactly how Based on the current docs it seems reasonable to expect the automatic application of In order to implement logic based on Beyond updating the docs to make the intended behavior and use cases clear, I don't have a suggestion on updating the implementation. I think removing the current solution would be a breaking change, so I'm not in favor of that. I think adding this change would be duplicative, so I'm not in favor of that. I think we just need better guidance. |
Works as expected due #3992 (comment), yes, we need to update our docs here, I will help |
@aoberoi Yeah, you are right, No need to duplicate logic because you can use Anyway feel free to feedback |
What kind of change does this PR introduce?
Fixes #3992
Did you add tests for your changes?
No
If relevant, did you update the documentation?
N/A
Summary
Make sure mode is set based on node_env
Does this PR introduce a breaking change?
No
Other information
N/A