Commit 313d39f
committed
forge: FORGE_CONFIG env fallback for CLI --plugin mounts
jspod / `jss --plugin module@prefix` mount a plugin with no per-plugin config
object (that's config-file territory). When the FORGE_CONFIG env var names a
JSON file, merge it into api.config as DEFAULTS at activate() — so a
CLI-mounted forge can still opt into Nostr announce relays, marks/chain,
openEdit, etc. Explicit api.config always wins; unset env or an unreadable
file is a silent no-op, so existing config-file deployments and the test
suite are unaffected (126 tests unchanged).1 parent fc6e542 commit 313d39f
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
863 | 863 | | |
864 | 864 | | |
865 | 865 | | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
866 | 877 | | |
867 | 878 | | |
868 | 879 | | |
| |||
0 commit comments