Harden production deployment workflow

This commit is contained in:
Codex
2026-04-28 01:09:17 +08:00
parent c8ccaa9925
commit 46a72f815e
23 changed files with 243 additions and 21 deletions
+12 -1
View File
@@ -18,8 +18,16 @@ const routes = [
'/zh/dealers',
'/en/dealers?tab=stores',
'/zh/dealers?tab=stores',
'/en/reviews',
'/en/reviews?tab=reviews',
'/zh/reviews',
'/en/support',
'/zh/support',
'/en/support/contact',
'/zh/support/contact',
'/en/support/tutorial',
'/zh/support/tutorial',
'/api/health',
'/favicon.ico',
'/Product/index/model/DAC-Z10/target/X4C68nRijzjeq7k9e%5Bld%5D3ulg%3D%3D.html',
]
@@ -40,7 +48,10 @@ async function check(route) {
}
}
const results = await Promise.all(routes.map((route) => check(route)))
const results = []
for (const route of routes) {
results.push(await check(route))
}
for (const result of results) {
const suffix = result.location ? ` -> ${result.location}` : ''