Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

HostEnvironment.IsProduction

Method
📦 Aspire.Hosting v17.0.0
type HostEnvironment interface {
// ... omitted for brevity
IsProduction() (bool, error)
}

Signature

methodIsProduction
Checks if the environment is Production.
IsProduction() (bool, error)
(bool, error)

True if running in Production environment.

Returns (bool, error).

Defined on

This method is defined on the following type: