From 8c26342cd52ad181cf88249b45ea996bea42ae7a Mon Sep 17 00:00:00 2001 From: yutent Date: Tue, 16 May 2023 15:09:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BC=80=E5=8F=91=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/dev.js | 8 ++++++-- package.json | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/dev.js b/lib/dev.js index 06ef7e8..c2addd8 100644 --- a/lib/dev.js +++ b/lib/dev.js @@ -136,7 +136,11 @@ export default async function createServer(root = '', conf = {}) { if (isIndex) { res.setHeader('content-type', MIME_TYPES.html) res.writeHead(200, 'OK') - res.end('') + res.end( + '
注意: 你看到这个页面, 仅在开发时可见。
仅为了方便开发多页应用时访问自己想要修改的页面, 而不需要手动输入地址。
' + ) } else { res.setHeader('accept-ranges', 'bytes') @@ -313,7 +317,7 @@ export default async function createServer(root = '', conf = {}) { console.log( ' 本地: %s://%s:%d%s', USE_HTTPS ? 'https' : 'http', - '127.0.0.1', + USE_HTTPS ? 'localhost' : '127.0.0.1', PORT, DEPLOY_PATH ) diff --git a/package.json b/package.json index 8bc33b2..74762af 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fite", "type": "module", - "version": "1.0.2", + "version": "1.0.3", "bin": { "fite": "index.js" },