feat: Enhance domain configuration to support hyphen subdomains and update related methods

This commit is contained in:
Alexa
2026-06-25 11:46:34 +03:00
parent ff55baa0c5
commit 98fa7b89cf
4 changed files with 87 additions and 8 deletions
@@ -54,7 +54,7 @@ public static class MiddlewarePipelineExtensions
// Public-facing site at the apex (e.g. localhost + www variant).
// React-router routes are client-side so spaFallback must be true.
app.MountStaticHost(domainCfg.Apex, "site", spaFallback: true);
app.MountStaticHost($"www.{domainCfg.Apex}", "site", spaFallback: true);
app.MountStaticHost(domainCfg.Sub("www"), "site", spaFallback: true);
// Old feed.* subdomain kept as legacy; new visitors land on the apex.
app.MountStaticHost(domainCfg.Sub("feed"), "feed");