Title: fix(cli): forward plugins and appPaths from config to createServer (#592) by melvincarvalho · Pull Request #593 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: fix(cli): forward plugins and appPaths from config to createServer (#592) by melvincarvalho · Pull Request #593 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: fix(cli): forward plugins and appPaths from config to createServer (#592) by melvincarvalho · Pull Request #593 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Fixes #592. Problem loadConfig merges plugins (#589) and appPaths (#582) from config.json, but the explicit allowlist bin/jss.js passes to createServer(...) omitted both — so the documented config-file route ("declare the apps in config and the server imports, mounts, and tears them down itself") silently booted a server with no plugins and no error. That's exactly the silent-missing-app failure mode src/plugins.js was designed to refuse, and it left the #206 loader programmatic-only: nothing driving JSS through the CLI (including servejss) could mount plugins. Fix Forward both keys in the createServer call. createServer already defaults each when undefined (Array.isArray guards), so configs that don't set them are unaffected. Verified (A/B) Config with {"plugins": [{"module": "…/hello-plugin.mjs", "prefix": "/hello-app", "config": {"greeting": "hi"}}]}: with fix: jss start -c config.json mounts the app; GET /hello-app/hello → {"from":"plugin","config":{"greeting":"hi"}} without fix (current main): same config boots cleanly, route → 404 Also confirmed a bad module path now fails the boot loudly through the CLI, as the loader intends. Follow-ups from #592 (repeatable --plugin CLI flag; pluginDataDir override so servejss-served trees don't collect .plugins/) left for separate PRs.
Open Graph Description: Fixes #592. Problem loadConfig merges plugins (#589) and appPaths (#582) from config.json, but the explicit allowlist bin/jss.js passes to createServer(...) omitted both — so the documented config-...
X Description: Fixes #592. Problem loadConfig merges plugins (#589) and appPaths (#582) from config.json, but the explicit allowlist bin/jss.js passes to createServer(...) omitted both — so the documented config-...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/593
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:8dd82bcf-b588-fe38-c59f-743a71b6d94b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CEE0:1752F1:10E2883:1571490:6B038BD6 |
| html-safe-nonce | b0ab267f868fef6b7ce0e6e2ffbbb0e073408692775214f42cd2f0e3b78008cf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUUwOjE3NTJGMToxMEUyODgzOjE1NzE0OTA6NkIwMzhCRDYiLCJ2aXNpdG9yX2lkIjoiMjY4MzU5OTQ5Nzk1NDgyMzEyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 70ef1f1066d88946c3436380afbc38d056ce53a84231bde0d1a43b42a229e24c |
| hovercard-subject-tag | pull_request:4034360772 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/JavaScriptSolidServer/JavaScriptSolidServer/pull/593/files |
| twitter:image | https://avatars.githubusercontent.com/u/65864?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/65864?s=400&v=4 |
| og:image:alt | Fixes #592. Problem loadConfig merges plugins (#589) and appPaths (#582) from config.json, but the explicit allowlist bin/jss.js passes to createServer(...) omitted both — so the documented config-... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| 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 |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width