Notes/apps/server/src/main.ts

15 lines
434 B
TypeScript
Raw Normal View History

2025-04-22 17:16:41 +03:00
/*
* Make sure not to import any modules that depend on localized messages via i18next here, as the initializations
* are loaded later and will result in an empty string.
*/
2025-04-22 17:16:41 +03:00
import { initializeTranslations } from "./services/i18n.js";
2025-04-22 17:16:41 +03:00
async function startApplication() {
await initializeTranslations();
const startTriliumServer = (await import("./www.js")).default;
await startTriliumServer();
2025-04-22 17:16:41 +03:00
}
startApplication();