Harden production deployment workflow
This commit is contained in:
@@ -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}` : ''
|
||||
|
||||
Reference in New Issue
Block a user