Resolves the server role from MJ_SERVER_ROLE or mj.config.cjs's serverRole. Defaults to 'all' when unset or blank. Throws on unrecognized values so deployment typos fail fast at startup instead of silently running the wrong workload profile.
MJ_SERVER_ROLE
mj.config.cjs
serverRole
'all'
Optional
Resolves the server role from
MJ_SERVER_ROLEormj.config.cjs'sserverRole. Defaults to'all'when unset or blank. Throws on unrecognized values so deployment typos fail fast at startup instead of silently running the wrong workload profile.