From 8df8d5c6efc558bb3dc31f58b5094bae01eb71ab Mon Sep 17 00:00:00 2001
From: Eritque arcus <q1930893235@gmail.com>
Date: Wed, 17 Sep 2025 21:50:12 +0000
Subject: [PATCH] fix: fix CNAME path error (#2096)

---
 quartz/build.ts |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/quartz/build.ts b/quartz/build.ts
index d9f5efc..f3adfe2 100644
--- a/quartz/build.ts
+++ b/quartz/build.ts
@@ -151,16 +151,19 @@
   const changes: ChangeEvent[] = []
   watcher
     .on("add", (fp) => {
+      fp = toPosixPath(fp)
       if (buildData.ignored(fp)) return
       changes.push({ path: fp as FilePath, type: "add" })
       void rebuild(changes, clientRefresh, buildData)
     })
     .on("change", (fp) => {
+      fp = toPosixPath(fp)
       if (buildData.ignored(fp)) return
       changes.push({ path: fp as FilePath, type: "change" })
       void rebuild(changes, clientRefresh, buildData)
     })
     .on("unlink", (fp) => {
+      fp = toPosixPath(fp)
       if (buildData.ignored(fp)) return
       changes.push({ path: fp as FilePath, type: "delete" })
       void rebuild(changes, clientRefresh, buildData)

--
Gitblit v1.10.0