明确前后端开发端口分工
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-09-07 16:07:50 +08:00
1 parent 6ad6f449ca
commit 362cf0d4cc
8 files changed
+99 -27

No files matched your search

+7
View File
@@ -52,6 +52,13 @@ test('开发启动必须固定运行配置根目录并集中保存日志', async
assert.match(content, /-WindowStyle Hidden/)
assert.match(content, /\[switch\]\$SkipBuild/)
assert.match(content, /--dev-disable-admin-reset/)
assert.match(content, /SMAIL_HTTP_PORT_OVERRIDE = '5201'/)
assert.match(content, /SMAIL_HTTP_TLS_MODE_OVERRIDE = 'proxy'/)
assert.match(content, /LocalPort 5201/)
assert.match(content, /@\(80, 443\)/)
assert.match(await read('frontend/.env.development'), /VITE_DEV_BACKEND_URL=http:\/\/127\.0\.0\.1:5201/)
assert.match(await read('frontend/vite.config.js'), /port: 443/)
assert.match(await read('frontend/vite.config.js'), /smail-development-http-redirect/)
assert.match(content, /默认先编译当前工作区/)
assert.ok(content.charCodeAt(0) === 0xfeff, 'Windows PowerShell 5 脚本应有 UTF-8 BOM')
})