How do I fix the Runtime mode validator for GreenStack? Print

  • 0

The UseHttpsValidator must be removed through code.

The code to remove the validator can look something like:

using Umbraco.Cms.Core.Composing;
using Umbraco.Cms.Infrastructure.Runtime.RuntimeModeValidators;

namespace MySite;

public class DockerChecksRemover : IComposer
{
    public void Compose(IUmbracoBuilder builder)
        => builder.RuntimeModeValidators().Remove();
}

Was this answer helpful?

« Back