Skip to content

chore: Add startup validation for required .env variables #25

@AlAfiz

Description

@AlAfiz

Description

If the server starts without a PORT defined, it might crash unexpectedly later. We should check this immediately when the app boots.

Requirements

  • At the top of index.js or server.js, check if process.env.PORT exists.
  • If it does not exist, use console.warn() to print a message saying it is falling back to a default port (e.g., 3000).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions