Skip to content

Commit 30055b7

Browse files
fix: update region extraction regex to match CDN instead of API
1 parent 6820edf commit 30055b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sanity-report.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ console.log(`Total Duration: ${totalDurationMinutes}m ${totalDurationSeconds.toF
4747
const host = process.env.HOST || ''
4848
let region = 'UNKNOWN REGION'
4949

50-
const match = host.match(/^([^-]+(?:-[^-]+)*)-api/)
50+
const match = host.match(/^([^-]+(?:-[^-]+)*)-cdn/)
5151
if (match && match[1]) {
5252
region = match[1].toUpperCase()
5353
}

0 commit comments

Comments
 (0)