check api key
All checks were successful
CI / build-and-test (pull_request) Successful in 14m42s

This commit is contained in:
Tobias Klemp
2025-12-07 19:56:38 +01:00
parent dbe95b9352
commit 9f66da7904
2 changed files with 6 additions and 2 deletions

View File

@@ -73,6 +73,10 @@ class LanguageService {
url.searchParams.append('languages', lang)
}
if (!env.TOLGEE_API_KEY) {
throw new Error('TOLGEE_API_KEY not set')
}
const response = await fetch(url, {
method: 'GET',
headers: {