Skip to content
DocsTry Aspire
DocsTry

isProduction

Method
📦 Aspire.Hosting v13.4.0
interface IHostEnvironment {
// ... omitted for brevity
isProduction(): boolean;
}

Signature

methodisProduction
Checks if the environment is Production.
isProduction(): boolean
boolean

Applies to

This method applies to the following types: