refactor: bare structure for new backend architecture and runtime; no behavior changes yet

This commit is contained in:
Haileyesus
2026-03-12 14:17:12 +03:00
parent b54cdf8168
commit e67738c9fc
40 changed files with 10316 additions and 9 deletions

19
server/src/app.ts Normal file
View File

@@ -0,0 +1,19 @@
import { pathToFileURL } from 'url';
import { getRuntimePaths } from './config/runtime.js';
import type { ServerApplication } from './shared/types/app.js';
import { logger } from './shared/utils/logger.js';
export function createServerApplication(): ServerApplication {
const runtimePaths = getRuntimePaths();
return {
runtimePaths,
start: async () => {
logger.info('Bootstrapping backend via legacy runtime bridge', {
legacyRuntime: runtimePaths.legacyRuntimePath,
});
await import(pathToFileURL(runtimePaths.legacyRuntimePath).href);
},
};
}