mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-05-16 01:12:46 +00:00
refactor: bare structure for new backend architecture and runtime; no behavior changes yet
This commit is contained in:
19
server/src/app.ts
Normal file
19
server/src/app.ts
Normal 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);
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user