namespace GerbilManagerWebAPI.Cms
{
    /// <summary>
    /// WEB-2: path where POST /api/publish writes the rendered static site.
    /// Env var: PublicSite__RootPath (empty = publish disabled, returns 503).
    /// In production this volume is shared with the publicsite-nginx container.
    /// </summary>
    public sealed class PublicSiteOptions
    {
        public const string SectionName = "PublicSite";

        public string? RootPath { get; set; }

        public bool IsConfigured => !string.IsNullOrWhiteSpace(RootPath);
    }
}
