From ee7a2eb177d5d5c974a510f60851c4aa11a22acb Mon Sep 17 00:00:00 2001 From: Xie Yuheng Date: Mon, 25 Sep 2023 23:12:37 +0800 Subject: [PATCH] up --- README.md | 5 +++-- src/utils/node/requestPath.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7a5c6f6..f8bc76a 100644 --- a/README.md +++ b/README.md @@ -145,8 +145,9 @@ https://www.fidb.app ``` When using `x-server serve-many`, -the `hostname` option is required, -and each website in `/websites` might have +the `hostname` option is required. + +And each website in `/websites` might have it's own `website.json` config file, Instead of issuing long command, diff --git a/src/utils/node/requestPath.ts b/src/utils/node/requestPath.ts index a88e65c..86b2ea3 100644 --- a/src/utils/node/requestPath.ts +++ b/src/utils/node/requestPath.ts @@ -1,6 +1,6 @@ import type Http from "node:http" import { normalize } from "node:path" -import { requestPathname } from "../../utils/node/requestPathname" +import { requestPathname } from "./requestPathname" export function requestPath(request: Http.IncomingMessage): string { const pathname = requestPathname(request)