Skip to content

fix: fail closed for invalid NODE_ENV values - #32

Merged
tuzuminami merged 1 commit into
mainfrom
codex/drift-v1-release-parity
Jul 31, 2026
Merged

fix: fail closed for invalid NODE_ENV values#32
tuzuminami merged 1 commit into
mainfrom
codex/drift-v1-release-parity

Conversation

@tuzuminami

Copy link
Copy Markdown
Owner

Summary

  • reject explicit NODE_ENV values outside development, test, and production
  • prevent typo values from silently selecting development auth and storage
  • add regression coverage for prod, Production, and empty values

Verification

  • pnpm run build
  • node --test dist/tests/server.test.js

Closes #25

@tuzuminami
tuzuminami merged commit e74411f into main Jul 31, 2026
1 check passed
@tuzuminami
tuzuminami deleted the codex/drift-v1-release-parity branch July 31, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

P1: reject unknown NODE_ENV values instead of falling back to development

1 participant