mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-05-16 01:12:46 +00:00
21 lines
619 B
TypeScript
21 lines
619 B
TypeScript
import path from 'path';
|
|
import { fileURLToPath } from 'url';
|
|
|
|
import type { RuntimePaths } from '../shared/types/app.js';
|
|
|
|
const __filename = fileURLToPath(import.meta.url);
|
|
const __dirname = path.dirname(__filename);
|
|
|
|
export function getRuntimePaths(): RuntimePaths {
|
|
const serverSrcDir = path.resolve(__dirname, '..');
|
|
const serverDir = path.resolve(serverSrcDir, '..');
|
|
|
|
return {
|
|
serverSrcDir,
|
|
serverDir,
|
|
projectRoot: path.resolve(serverDir, '..'),
|
|
legacyRuntimePath: path.join(serverDir, 'legacy-runtime.js'),
|
|
bootstrapEntrypointPath: path.join(serverDir, 'dist', 'bootstrap.js'),
|
|
};
|
|
}
|