release: WRNexusJS 0.5.10
This commit is contained in:
@@ -25,10 +25,11 @@ import {
|
||||
type PwaConfig,
|
||||
type ObservabilityConfig,
|
||||
type TenancyConfig,
|
||||
type NavigationConfig,
|
||||
} from "@wrnexus/styles";
|
||||
import { VALIDATE_RUNTIME } from "@wrnexus/validation";
|
||||
import { I18N_RUNTIME, type ResolvedI18n } from "@wrnexus/i18n";
|
||||
import { setDb, registerDb, getDb, hasDb, migrate } from "@wrnexus/db";
|
||||
import { setDb, registerLazyDb, getDb, hasDb, migrate } from "@wrnexus/db";
|
||||
import { connectFromConfig } from "@wrnexus/db/connect";
|
||||
import {
|
||||
configureStorage,
|
||||
@@ -133,6 +134,8 @@ export interface ProdOptions {
|
||||
observability?: ObservabilityConfig;
|
||||
/** Built-in tenant identity resolution. */
|
||||
tenancy?: TenancyConfig;
|
||||
/** Page navigation strategy. */
|
||||
navigation?: NavigationConfig;
|
||||
port?: number;
|
||||
hostname?: string;
|
||||
maxBodyBytes?: number;
|
||||
@@ -287,14 +290,7 @@ export function createProductionHandlers(
|
||||
}
|
||||
}
|
||||
for (const [name, cfg] of Object.entries(opts.databases ?? {})) {
|
||||
try {
|
||||
registerDb(name, connectFromConfig(cfg));
|
||||
} catch (err) {
|
||||
console.warn(
|
||||
`[wrnexus] database '${name}' setup failed:`,
|
||||
err instanceof Error ? err.message : err,
|
||||
);
|
||||
}
|
||||
registerLazyDb(name, () => connectFromConfig(cfg));
|
||||
}
|
||||
|
||||
// File-upload storage. Relative local dirs resolve against the deployment cwd
|
||||
@@ -334,6 +330,7 @@ export function createProductionHandlers(
|
||||
security: opts.security,
|
||||
observability: opts.observability,
|
||||
tenancy: opts.tenancy,
|
||||
navigation: opts.navigation,
|
||||
maxBodyBytes: opts.maxBodyBytes,
|
||||
realtimeBus: realtimeBusFromConfig(opts.realtime),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user