FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat: pass --body-limit 40MB + require jss >=0.0.208 so large app installs fit by melvincarvalho · Pull Request #80 · JavaScriptSolidServer/jspod · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .js  (1) .json  (1) All 2 file types selected
Only manifest files
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
10 changes: 9 additions & 1 deletion lib/start.js
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
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,15 @@ export async function start(userOptions = {}) {
'--root', options.root,
'--notifications',
'--conneg',
'--mashlib-module', dataBrowserUrl
'--mashlib-module', dataBrowserUrl,
// Raise the request body limit above JSS's 20MB default so app
// installs with a large git history fit — e.g. solid-chat/app's
// ~30MB pack (`jss install` does a full clone; JSS git-receive
// rejects shallow pushes). 40MB clears that with headroom without
// an over-permissive memory-DoS surface. Needs jss >=0.0.208,
// where --body-limit actually reaches Fastify from the CLI (#562) —
// enforced by this package's dependency range.
'--body-limit', options.bodyLimit || '40MB'
];

if (options.multiuser) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jspod",
"version": "0.0.47",
"version": "0.0.48",
"description": "JavaScript Solid Pod - Just works, batteries included",
"type": "module",
"main": "./lib/index.js",
Expand Down Expand Up @@ -60,6 +60,6 @@
},
"dependencies": {
"chalk": "^5.6.2",
"javascript-solid-server": "^0.0.207"
"javascript-solid-server": ">=0.0.208 <0.0.211"
}
}

Back | FazBrowse Home | New Git URL