fix: add trailing slash to local serving

This commit is contained in:
Jacky Zhao 2023-08-13 17:47:07 -07:00
parent a8604d84f4
commit e0d63776cd
2 changed files with 2 additions and 0 deletions

View File

@ -387,6 +387,7 @@ See the [documentation](https://quartz.jzhao.xyz) for how to get started.
await serveHandler(req, res, { await serveHandler(req, res, {
public: argv.output, public: argv.output,
directoryListing: false, directoryListing: false,
trailingSlash: true,
}) })
const status = res.statusCode const status = res.statusCode
const statusString = const statusString =

View File

@ -1,4 +1,5 @@
import { slug } from "github-slugger" import { slug } from "github-slugger"
// this file must be isomorphic so it can't use node libs (e.g. path)
// Quartz Paths // Quartz Paths
// Things in boxes are not actual types but rather sources which these types can be acquired from // Things in boxes are not actual types but rather sources which these types can be acquired from