fix(standalone/setup): server API missing when DB not initialized

This commit is contained in:
Elian Doran
2026-03-23 19:19:56 +02:00
parent c07ea1bfa7
commit 3231db3c3f
2 changed files with 3 additions and 1 deletions

View File

@@ -225,7 +225,8 @@ function bootstrapRoute(): BootstrapDefinition {
if (!sql_init.isDbInitialized()) {
return {
dbInitialized: false
dbInitialized: false,
baseApiUrl: "../api/"
};
}

View File

@@ -343,6 +343,7 @@ export type BootstrapDefinition = {
TRILIUM_SAFE_MODE: boolean;
} | {
dbInitialized: false;
baseApiUrl: string;
}
/**