AssetEnvironment
Corex\Assets\AssetEnvironment · class · Core layer
The resolved asset environment (spec 047) — local / staging / production — selecting the version strategy and whether source maps are exposed. Pure: resolved from an explicit config value, defaulting to production-safe behaviour when unset/unknown.
Public API
Section titled “Public API”from(?string $value): self
Section titled “from(?string $value): self”isLocal(): bool
Section titled “isLocal(): bool”isProduction(): bool
Section titled “isProduction(): bool”exposesSourceMaps(): bool
Section titled “exposesSourceMaps(): bool”Public source maps are exposed only in local — never in staging/production by default.