Skip to content

.env.example missing NODE_ENV — env.js reads it for the production hard-fail #219

@CryptoJones

Description

@CryptoJones

Problem

.env.example documents 18 of the 19 env vars the codebase consumes. The missing one is NODE_ENV, despite app/config/env.js reading it to gate the empty-DB_PASSWORD hard-fail in production:

if (process.env.NODE_ENV === 'production') {
    console.error('[env] DB_PASSWORD is empty and NODE_ENV=production. Refusing to start. ...');
    process.exit(1);
}

The README env table was updated in #176 to include NODE_ENV, but .env.example (cited in its own header as "the canonical reference") was missed.

Fix

Add a NODE_ENV row to .env.example with the same production-mode semantics the README and code already describe.

Proudly Made in Nebraska. Go Big Red! 🌽 https://xkcd.com/2347/

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