mirror of
https://github.com/actualbudget/actual.git
synced 2026-05-08 21:12:08 -05:00
* remove unneeded loot core ref and keeping better-sqlite external * release notes * putting the package config back * cleaning up * add missing db files * updates * window state updates
20 lines
454 B
TypeScript
20 lines
454 B
TypeScript
// @ts-strict-ignore
|
|
import fetch from 'node-fetch';
|
|
|
|
global.fetch = fetch;
|
|
|
|
const lazyLoadBackend = async (isDev: boolean) => {
|
|
try {
|
|
const bundle = await import(process.env.lootCoreScript);
|
|
bundle.initApp(isDev);
|
|
} catch (error) {
|
|
console.error('Failed to init the server bundle:', error);
|
|
throw new Error(`Failed to init the server bundle: ${error.message}`);
|
|
}
|
|
};
|
|
|
|
const isDev = false;
|
|
|
|
// Start the app
|
|
lazyLoadBackend(isDev);
|