Title: CLI silently drops plugins and appPaths from config — #206 loader unreachable from jss start · Issue #592 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: CLI silently drops plugins and appPaths from config — #206 loader unreachable from jss start · Issue #592 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: CLI silently drops plugins and appPaths from config — #206 loader unreachable from jss start · Issue #592 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Problem docs/configuration.md says the plugin loader (#206, landed in #589) works by declaring apps in config: declare the apps in config and the server imports, mounts, and tears them down itself But bin/jss.js passes an explicit allowl...
Open Graph Description: Problem docs/configuration.md says the plugin loader (#206, landed in #589) works by declaring apps in config: declare the apps in config and the server imports, mounts, and tears them down itself ...
X Description: Problem docs/configuration.md says the plugin loader (#206, landed in #589) works by declaring apps in config: declare the apps in config and the server imports, mounts, and tears them down itself ...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/592
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CLI silently drops plugins and appPaths from config — #206 loader unreachable from jss start","articleBody":"## Problem\n\n`docs/configuration.md` says the plugin loader (#206, landed in #589) works by declaring apps in config:\n\n> declare the apps in config and the server imports, mounts, and tears them down itself\n\nBut `bin/jss.js` passes an explicit allowlist of keys to `createServer(...)`, and neither `plugins` nor `appPaths` (#582) is in it. `loadConfig` merges them from `config.json` fine — they just never reach `createServer`. So:\n\n```bash\njss start -c config.json # config.json contains a plugins: [...] array\n```\n\nboots a server with **no plugins and no error** — exactly the silent-missing-app failure mode `src/plugins.js` was designed to refuse (\"a plugin that fails to load fails the boot loudly\").\n\nPractical consequence: the #206 loader is programmatic-only today. Anything that drives JSS through the CLI — including servejss — can't mount plugins at all.\n\n## Fix\n\nForward both keys in the `createServer` call in `bin/jss.js`:\n\n```js\nappPaths: config.appPaths,\nplugins: config.plugins,\n```\n\n(`createServer` already defaults both when undefined, so this is safe for configs that don't set them.)\n\n## Follow-ups (separate, if wanted)\n\n1. **`--plugin \u003cmodule[@prefix]>` CLI flag** (repeatable) so mounting an app doesn't require a config file — which would also let servejss forward it and gain `servejss --plugin ./chat/plugin.js@/chat ./public`.\n2. **`pluginDataDir` option**: `api.storage.pluginDir()` resolves to `\u003croot>/.plugins/\u003cid>`. Under servejss, root is the directory the user pointed at, so a plugin using storage writes `.plugins/` into the served tree — the same directory-pollution class #578 just fixed for seeding. An override letting operators park plugin data outside the data root would close it.","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-07-11T06:43:37Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/592"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5b469927-edd9-6468-42be-7e123d85d737 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB96:1864C7:578B63:747BB1:6B0387FA |
| html-safe-nonce | b6707f426bf80f98bd47571ce7ee5b3b3a127ba20513b3b14fd0b644c8471bd4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjk2OjE4NjRDNzo1NzhCNjM6NzQ3QkIxOjZCMDM4N0ZBIiwidmlzaXRvcl9pZCI6IjY3MDYxMDYzOTA5NTc3NTQzNjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bb554b0c60c60eb1a5da7e5caec7c4a83659423b62767848f3485b0c8929b648 |
| hovercard-subject-tag | issue:4861003449 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/592/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f53c8263dad99e48ef4938c3a10be715cf8ec59e7773d60f3d7a16d97a413853/JavaScriptSolidServer/JavaScriptSolidServer/issues/592 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f53c8263dad99e48ef4938c3a10be715cf8ec59e7773d60f3d7a16d97a413853/JavaScriptSolidServer/JavaScriptSolidServer/issues/592 |
| og:image:alt | Problem docs/configuration.md says the plugin loader (#206, landed in #589) works by declaring apps in config: declare the apps in config and the server imports, mounts, and tears them down itself ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width