refactor(caddy): разделить site-блоки по хостам под переезд #3062

Merged
lekss361 merged 3 commits from refactor/caddyfile-split-by-host into main 2026-08-23 21:52:48 +00:00
2 changed files with 2 additions and 4 deletions
Showing only changes of commit dcf8c1655d - Show all commits

View file

@ -71,8 +71,7 @@ function readEffectiveCaddyConfig(repoRoot: string): string {
.filter((f) => f.endsWith(".caddy"))
.sort()
.map((f) => readFileSync(path.join(sitesDir, f), "utf8"));
return [readFileSync(path.join(repoRoot, "Caddyfile"), "utf8"), ...siteFiles].join("
");
return [readFileSync(path.join(repoRoot, "Caddyfile"), "utf8"), ...siteFiles].join("\n");
}
describe("короткие адреса публичного домена", () => {

View file

@ -35,8 +35,7 @@ function readEffectiveCaddyConfig(repoRoot: string): string {
.filter((f) => f.endsWith(".caddy"))
.sort()
.map((f) => readFileSync(path.join(sitesDir, f), "utf8"));
return [readFileSync(path.join(repoRoot, "Caddyfile"), "utf8"), ...siteFiles].join("
");
return [readFileSync(path.join(repoRoot, "Caddyfile"), "utf8"), ...siteFiles].join("\n");
}
describe("isPublicPath", () => {