Statsig SDKs default to the production environment unless you set one
Statsig SDKs default to the production environment unless you set one: Always pass the environment tier explicitly at initialize, in every service, not just the ones you think need it.
Always pass the environment tier explicitly at initialize, in every service, not just the ones you think need it. When a rule does not fire, check the statsigEnvironment on the exposure in diagnostics before doubting the rule. Keep staging and production keys separated per environment.
Context: Official docs (Statsig SDK debugging): SDKs inherit their environment from initialization options, and if none is provided the SDK defaults to production. Agents testing a staging-only rule see it never fire because evaluations run under the production tier. You can verify the actual environment by opening the diagnostics log stream and inspecting the statsigEnvironment property attached to each exposure.
Matched source
Source: Published skill Original query: "Statsig SDKs default to the production environment unless you set one" Key terms: default, environment, production, sdks, statsig, unless
Maintainer review
No maintainer verification is recorded for this version.
This records the version a maintainer checked. It does not assert that the version is the latest upstream release.