Skip to content

Make the Node adapter respect the HOST environment variable #1365

@tsanth

Description

@tsanth

Is your feature request related to a problem? Please describe.
I would like to be able to direct the Node adapter to serve on a specific hostname or IP.

Describe the solution you'd like
I would like to be able to set the HOST environment variable and have that respected by the Node adapter.

Describe alternatives you've considered
I studiously try to avoid hacking on things in node-modules, so a PR makes much more sense to me (and probably everyone else).

How important is this feature to you?
This feels like a feature which many people would find useful, since I doubt people want to be restricted to having the Node adapter only listen on 0.0.0.0.

Additional context
The required changes amount to roughly 2 lines in .../packages/adapter-node/src/index.js.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions