From 3c239fe7219e68d33ac1e469da5f3f811934de4d Mon Sep 17 00:00:00 2001 From: yutent Date: Tue, 13 Jun 2023 17:45:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=88=86=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/dev.js | 6 ++++-- package.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/dev.js b/lib/dev.js index 688d6c6..1756197 100644 --- a/lib/dev.js +++ b/lib/dev.js @@ -146,9 +146,10 @@ export default async function createServer(root = '', conf = {}) { res.setHeader('content-type', MIME_TYPES.html) res.writeHead(200, USE_HTTPS ? void 0 : 'OK') res.end( - '
注意: 你看到这个页面, 仅在开发时可见。
仅为了方便开发多页应用时访问自己想要修改的页面, 而不需要手动输入地址。
' + '' ) } else { res.setHeader('accept-ranges', 'bytes') @@ -196,6 +197,7 @@ export default async function createServer(root = '', conf = {}) { file = join(SOURCE_DIR, rpath) } } else { + ndex.html file = join(SOURCE_DIR, rpath) } if (!fs.isfile(file)) { diff --git a/package.json b/package.json index 6e95851..807d3c0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fite", "type": "module", - "version": "1.1.9", + "version": "1.1.10", "bin": { "fite": "index.js" },