* Add runtime mode setting * Only enable Razor runtime compilation in development modes * Only enable ModelsBuilder generation in development modes * Fix disabling ModelsBuilder controllers * Add IRuntimeModeValidationService and IRuntimeModeValidator * Add JITOptimizerValidator * Add UmbracoApplicationUrlValidator * Add UseHttpsValidator * Add RuntimeMinificationValidator * Add ModelsBuilderModeValidator * Remove .NET 6 preview 1 fix for Razor runtime compilation * Only allow InMemoryAuto in backoffice development mode * Make runtime mode validators public, so they can be easily removed if required * Add comment to highlight removing RazorCompileOnBuild, RazorCompileOnPublish and CopyRazorGenerateFilesToPublishDirectory when using ModelsMode InMemoryAuto * Add documentation * Update src/Umbraco.Web.Common/ModelsBuilder/NoopModelsBuilderDashboardProvider.cs Co-authored-by: Ronald Barendse <ronald@barend.se> Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
23 lines
700 B
C#
23 lines
700 B
C#
namespace Umbraco.Cms.Core.Configuration.Models;
|
|
|
|
/// <summary>
|
|
/// Represents the configured Umbraco runtime mode.
|
|
/// </summary>
|
|
public enum RuntimeMode
|
|
{
|
|
/// <summary>
|
|
/// The backoffice development mode ensures the runtime is configured for rapidly applying changes within the backoffice.
|
|
/// </summary>
|
|
BackofficeDevelopment = 0,
|
|
|
|
/// <summary>
|
|
/// The development mode ensures the runtime is configured for rapidly applying changes.
|
|
/// </summary>
|
|
Development = 1,
|
|
|
|
/// <summary>
|
|
/// The production mode ensures optimal performance settings are configured and denies any changes that would require recompilations.
|
|
/// </summary>
|
|
Production = 2
|
|
}
|