mirror of
https://github.com/zadam/trilium.git
synced 2026-06-18 19:32:05 +02:00
fix(standalone/setup): server API missing when DB not initialized
This commit is contained in:
@@ -225,7 +225,8 @@ function bootstrapRoute(): BootstrapDefinition {
|
||||
|
||||
if (!sql_init.isDbInitialized()) {
|
||||
return {
|
||||
dbInitialized: false
|
||||
dbInitialized: false,
|
||||
baseApiUrl: "../api/"
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -343,6 +343,7 @@ export type BootstrapDefinition = {
|
||||
TRILIUM_SAFE_MODE: boolean;
|
||||
} | {
|
||||
dbInitialized: false;
|
||||
baseApiUrl: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user