@flun/html-template 4.3.0 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dev-server.js +1 -1
- package/f-CHANGELOG.md +3 -0
- package/package.json +1 -1
package/dev-server.js
CHANGED
|
@@ -50,7 +50,7 @@ const __filename = fileURLToPath(import.meta.url), __dirname = path.dirname(__fi
|
|
|
50
50
|
if (!existsSync(certPath)) throw new Error(`证书文件不存在: ${certPath}`);
|
|
51
51
|
const key = readFileSync(keyPath, 'utf8'), cert = readFileSync(certPath, 'utf8');
|
|
52
52
|
serverInstance = https.createServer({ key, cert }, app);
|
|
53
|
-
console.log(`🔒 HTTPS
|
|
53
|
+
console.log(`🔒 证书加载成功,HTTPS已启用`);
|
|
54
54
|
} catch (err) {
|
|
55
55
|
console.error(`❌ HTTPS证书加载失败: ${err.message}`);
|
|
56
56
|
process.exit(1);
|
package/f-CHANGELOG.md
CHANGED