Skip to content
Docs Try Aspire

isProduction

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

Signature

method isProduction
Checks if running in Production environment
isProduction(): boolean
boolean

Applies to

This function is an extension method on the following types: