[v9.6.1] - March 8, 2026
Fixed
- Fixed
Env#currentcrashing when Rails is not loaded. PR #963 by ihabadham. Addeddefined?(Rails)guard toShakapacker::Env#currentso it falls back toRAILS_ENV/RACK_ENVenvironment variables when called from non-Rails Ruby processes (e.g.,bin/devscripts). Previously, this would raise aNameErrorand silently fall back to"production".