Skip to content

feat: pass --body-limit 40MB + require jss >=0.0.208 so large app installs fit#80

Merged
melvincarvalho merged 1 commit into
gh-pagesfrom
issue-jss-dep-range-bodylimit
Jun 15, 2026
Merged

feat: pass --body-limit 40MB + require jss >=0.0.208 so large app installs fit#80
melvincarvalho merged 1 commit into
gh-pagesfrom
issue-jss-dep-range-bodylimit

Conversation

@melvincarvalho

Copy link
Copy Markdown
Contributor

Why

jspod spawns jss with no --body-limit, so it rode JSS's default request body cap. That blocked installing apps with a large git history through a pod — e.g. solid-chat/app's ~30MB pack (jss install does a full clone because JSS git-receive rejects shallow pushes), which 413'd against the old 10MB and the new 20MB default.

Changes

Change Detail
Pass --body-limit 40MB to the spawned jss Overridable via options.bodyLimit. 40MB clears the ~30MB pack with headroom, without an over-permissive memory-DoS surface.
JSS dep ^0.0.207>=0.0.208 <0.0.211 --body-limit only reaches Fastify from the CLI as of 0.0.208 (JSS #562) — before that the flag was dead wiring. Range floats up to 0.0.210 without re-pinning each patch.
jspod 0.0.470.0.48 publishable behaviour change

Notes

  • ^0.0.207 pinned to exactly 0.0.207 (caret locks the patch on 0.0.x), so the explicit range is what lets jspod actually move to 0.0.208+.
  • 40MB is deliberately modest — "just about justifiable" headroom over chat's ~30MB. If an app's history outgrows it, options.bodyLimit is the escape hatch (no code change needed).
  • The 20MB JSS default (JSS #563) alone is not enough for chat — this passthrough is the actual fix.

…talls fit

jspod spawns jss with no --body-limit, so it rode JSS's default cap.
That blocked installing apps with a large git history through a pod —
e.g. solid-chat/app's ~30MB pack (jss install does a full clone; JSS
git-receive rejects shallow pushes), which 413'd against the old 10MB
(and even the new 20MB) default.

- Pass --body-limit 40MB when spawning jss (overridable via
  options.bodyLimit). 40MB clears the ~30MB pack with headroom without
  an over-permissive memory-DoS surface.
- Require jss >=0.0.208 <0.0.211: --body-limit only actually reaches
  Fastify from the CLI as of 0.0.208 (#562) — before that the flag was
  dead wiring — and the range floats up to 0.0.210 without re-pinning.

Bump jspod 0.0.47 → 0.0.48.
@melvincarvalho
melvincarvalho merged commit b217774 into gh-pages Jun 15, 2026
@melvincarvalho
melvincarvalho deleted the issue-jss-dep-range-bodylimit branch June 15, 2026 07:48
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