fix: self-hosting

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-10-22 11:56:27 +02:00
parent 42d0fb8572
commit 49a4f5b8ae
7 changed files with 25 additions and 13 deletions

View File

@@ -5,7 +5,11 @@ export function useAppContext() {
strict: false,
});
if (!params.apiUrl || !params.dashboardUrl || !params.isSelfHosted) {
if (
!params.apiUrl ||
!params.dashboardUrl ||
typeof params.isSelfHosted === 'undefined'
) {
throw new Error('API URL or dashboard URL is not set');
}