fix(ts): region typescript issue

This commit is contained in:
2026-04-29 16:32:16 +02:00
parent 2ce6fea782
commit 995a14387c

View File

@@ -90,6 +90,11 @@ export async function syncStream() {
for (const r of regions) {
const region = MEDIAMTX_SERVER_REGIONS[r];
if (!region) {
// continuing bc of the next if check
continue;
}
if (!region.apiAuthHeader) {
throw new Error('MEDIAMTX_API_KEY is required when querying the MediaMTX API');
}