-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
Freeze NODE_OPTIONS for SingeExecutableApplications #55573
Copy link
Copy link
Closed
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.single-executableIssues and PRs related to single-executable applicationsIssues and PRs related to single-executable applications
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.single-executableIssues and PRs related to single-executable applicationsIssues and PRs related to single-executable applications
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Awaiting Triage
What is the problem this feature will solve?
The
NODE_OPTIONSenvironment variable allows configuration of the node process at runtime. This is inappropriate for Single Executable Applications. But the configurability provided is also something strictly desirable foe Single Executable Applications at "build" time.What is the feature you are proposing to solve the problem?
NODE_OPTIONSenvironment variable into the injected blob at build-timeNODE_OPTIONSvalue at runtimeWhat alternatives have you considered?
I looked at enabling individual overrides via sea-config.json as well as possibly storing the actual environment settings and reconstructing these.
However that seems to be either less configurable as well as introducing additional complexity. By going this route, we'd expose the full configurability of
NODE_OPTIONSwhile at the same time not introducing any strictly new mechanisms.