Notes/apps/server/src/main.ts

15 lines
434 B
TypeScript

/*
* 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.
*/
import { initializeTranslations } from "./services/i18n.js";
async function startApplication() {
await initializeTranslations();
const startTriliumServer = (await import("./www.js")).default;
await startTriliumServer();
}
startApplication();