Jacky Zhao
2023-08-14 7bde99b4e2d49e30dad1e0d58ccc34c2e7482005
fix: add trailing slash to local serving
2 files modified
2 ■■■■■ changed files
quartz/bootstrap-cli.mjs 1 ●●●● patch | view | raw | blame | history
quartz/path.ts 1 ●●●● patch | view | raw | blame | history
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 =
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