public static class BridgeDiagnostics Controls the local failure detail of Bridge error replies.
Remarks
A failed route, operation admission or operation always replies with a bounded message such as "Save failed.". With failure detail, the error also carries detail: {type, message, stack} from the exception, which the TypeScript runtime exposes as BridgeError.detail and the Vite plugin shows in DevTools. Detail can contain file paths and application data, so production replies never include it unless the application opts in.
Properties
IncludeFailureDetail
public static bool? IncludeFailureDetail { get; set; } Whether Bridge error replies carry the exception type, message and stack. null, the default, includes them only when the host environment is Development: DOTNET_ENVIRONMENT, or else ASPNETCORE_ENVIRONMENT, which dotnet runic dev sets. true opts in and false opts out regardless of the environment.