module-10/11/12 收尾: 补充 Nginx/Flask 切机验收脚本与说明(发布门控 RELEASE_SMOKE)

This commit is contained in:
2026-09-05 18:09:42 +08:00
parent cd9c5effb7
commit fe429c7a05
4 changed files with 29 additions and 0 deletions
@@ -0,0 +1,8 @@
import test from 'node:test'
import assert from 'node:assert/strict'
const ENABLED = process.env.RELEASE_SMOKE === '1'
test('release_smoke', { skip: !ENABLED }, async () => {
const base = process.env.AIIMAGE_LIVE_BASE || 'http://127.0.0.1:18080'
const res = await fetch(`${base}/login`)
assert.equal(res.status, 200)
})