From eccad3da5d7b84b0f78a85b357efedef8c0127fc Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Wed, 19 Mar 2025 04:48:24 +0000
Subject: [PATCH] fix(lastmod): fallback to ctx.arg.directory instead of empty string
---
quartz/util/ctx.ts | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/quartz/util/ctx.ts b/quartz/util/ctx.ts
index d303391..b3e7a37 100644
--- a/quartz/util/ctx.ts
+++ b/quartz/util/ctx.ts
@@ -1,17 +1,25 @@
import { QuartzConfig } from "../cfg"
-import { FullSlug } from "./path"
+import { FilePath, FullSlug } from "./path"
export interface Argv {
directory: string
verbose: boolean
output: string
serve: boolean
+ watch: boolean
port: number
+ wsPort: number
+ remoteDevHost?: string
concurrency?: number
}
export interface BuildCtx {
+ buildId: string
argv: Argv
cfg: QuartzConfig
allSlugs: FullSlug[]
+ allFiles: FilePath[]
+ incremental: boolean
}
+
+export type WorkerSerializableBuildCtx = Omit<BuildCtx, "cfg">
--
Gitblit v1.10.0