From 7bde99b4e2d49e30dad1e0d58ccc34c2e7482005 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 14 Aug 2023 00:47:18 +0000
Subject: [PATCH] fix: add trailing slash to local serving
---
quartz/path.ts | 1 +
quartz/bootstrap-cli.mjs | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/quartz/bootstrap-cli.mjs b/quartz/bootstrap-cli.mjs
index d00a242..0730f90 100755
--- a/quartz/bootstrap-cli.mjs
+++ b/quartz/bootstrap-cli.mjs
@@ -387,6 +387,7 @@
await serveHandler(req, res, {
public: argv.output,
directoryListing: false,
+ trailingSlash: true,
})
const status = res.statusCode
const statusString =
diff --git a/quartz/path.ts b/quartz/path.ts
index e5bd0d6..8588c21 100644
--- a/quartz/path.ts
+++ b/quartz/path.ts
@@ -1,4 +1,5 @@
import { slug } from "github-slugger"
+// this file must be isomorphic so it can't use node libs (e.g. path)
// Quartz Paths
// Things in boxes are not actual types but rather sources which these types can be acquired from
--
Gitblit v1.10.0