Skip to content

Incorrect Port Assignment In Backend #11

Description

@kirubelm1

The line const port = 5000 || process.env.PORT; always assigns 5000 to port because 5000 is a truthy value. This prevents the server from using the port specified in the environment variable process.env.PORT. The correct approach is const port = process.env.PORT || 5000;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions