feat: prepare supporter self-hosting

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-10-22 09:36:53 +02:00
parent f958230a66
commit 9790ba8937
19 changed files with 2647 additions and 115 deletions

View File

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