You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CLI silently drops plugins and appPaths from config — #206 loader unreachable from jss start #592
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 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:
boots 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").
Practical consequence: the #206 loader is programmatic-only today. Anything that drives JSS through the CLI — including servejss — can't mount plugins at all.
Fix
Forward both keys in the createServer call in bin/jss.js:
(createServer already defaults both when undefined, so this is safe for configs that don't set them.)
Follow-ups (separate, if wanted)
--plugin <module[@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.
Activity
fix(cli): forward plugins and appPaths from config to createServer (#592
bump version to 0.0.216
bump version to 0.0.217