Skip to content

Conversation

@chenrui333
Copy link

@chenrui333 chenrui333 commented Jan 17, 2026

  • Parse CLI args before loading server to handle --help/-h and --version/-v early, avoiding credential validation
  • Make pino-pretty opt-in via LOG_PRETTY env var instead of auto-enabling in development mode (fixes "unable to determine transport target" error when devDependency not installed)
  • Move config validation from module top-level to validateConfig() function called only when starting the server

Fixes Homebrew install failing on lynkr --version due to:

  1. pino-pretty not bundled in production
  2. Missing credentials throwing before args could be parsed

cc @vishalveerareddy123

- Parse CLI args before loading server to handle --help/-h and
  --version/-v early, avoiding credential validation
- Make pino-pretty opt-in via LOG_PRETTY env var instead of
  auto-enabling in development mode (fixes "unable to determine
  transport target" error when devDependency not installed)
- Move config validation from module top-level to validateConfig()
  function called only when starting the server

Fixes Homebrew install failing on `lynkr --version` due to:
1. pino-pretty not bundled in production
2. Missing credentials throwing before args could be parsed

Signed-off-by: Rui Chen <rui@chenrui.dev>
@chenrui333 chenrui333 closed this Jan 18, 2026
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.

1 participant