Repository navigation
Conversation
…t it
Windows runs package.json scripts in Bun Shell, which expands `$VAR` but has
no `${VAR:-default}` syntax, so the literal placeholder reached bun and `bun
dev` died with "Invalid value for --max-http-header-size". Bun accepts the cap
only as a launch flag, so the launch moves into scripts/dev.ts, which reads
CHRONOS_MAX_HTTP_HEADER_SIZE (default 65536) and forwards SIGINT/SIGTERM to
the server so a killed dev task cannot leave an orphan on port 3001.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
bun devfailed on Windows before Chronos could start: the dev command asked the shell for an optional setting, and the Windows shell doesn't understand that syntax, so the backend exited immediately with an "invalid value" error. The dev command now works out that value itself, so it behaves the same on Windows, Linux and macOS.Changes
CHRONOS_MAX_HTTP_HEADER_SIZEstill overrides it; the default stays 65536.Verification
bun run lintbun run typecheckbun run build— if bundler config, routers, or server entrypoints changed