From 50a78bafa53a6f99aa28911beb2d73e74c4127dd Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sun, 15 Sep 2024 23:47:11 +0000
Subject: [PATCH] docs: clarify prod hosting

---
 quartz/build.ts |    4 ++--
 docs/build.md   |    4 ++++
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/docs/build.md b/docs/build.md
index 1447687..6005770 100644
--- a/docs/build.md
+++ b/docs/build.md
@@ -21,3 +21,7 @@
 > - `--serve`: run a local hot-reloading server to preview your Quartz
 > - `--port`: what port to run the local preview server on
 > - `--concurrency`: how many threads to use to parse notes
+
+> [!warning] Not to be used for production
+> Serve mode is intended for local previews only.
+> For production workloads, see the page on [[hosting]].
diff --git a/quartz/build.ts b/quartz/build.ts
index 38efe36..67ec0da 100644
--- a/quartz/build.ts
+++ b/quartz/build.ts
@@ -163,7 +163,7 @@
   }
 
   const buildId = newBuildId()
-  ctx.buildId = buildId 
+  ctx.buildId = buildId
   buildData.lastBuildMs = new Date().getTime()
   const release = await mut.acquire()
 
@@ -360,7 +360,7 @@
   }
 
   const buildId = newBuildId()
-  ctx.buildId = buildId 
+  ctx.buildId = buildId
   buildData.lastBuildMs = new Date().getTime()
   const release = await mut.acquire()
 

--
Gitblit v1.10.0