fix: update legacy runtime path

- Changed the legacy runtime path from 'legacy-runtime.js' to 'index.js'
in runtime configuration.
- Added a new start script (start.js) to check for the existence of the
built TypeScript server entrypoint and import it.
This commit is contained in:
Haileyesus
2026-03-16 16:16:00 +03:00
parent 695da128f3
commit 23c39a42b1
10 changed files with 119 additions and 2649 deletions

View File

@@ -14,7 +14,7 @@ export function getRuntimePaths(): RuntimePaths {
serverSrcDir,
serverDir,
projectRoot: path.resolve(serverDir, '..'),
legacyRuntimePath: path.join(serverDir, 'legacy-runtime.js'),
legacyRuntimePath: path.join(serverDir, 'index.js'),
bootstrapEntrypointPath: path.join(serverDir, 'dist', 'bootstrap.js'),
};
}