13 lines
352 B
TypeScript
13 lines
352 B
TypeScript
import { bootstrap } from "./bootstrap";
|
|
import { readRuntimeConfig } from "./config";
|
|
|
|
async function main() {
|
|
const { configPath } = readRuntimeConfig();
|
|
await bootstrap({ configPath, mode: "production" });
|
|
}
|
|
|
|
void main().catch((error) => {
|
|
console.error("启动失败:", error instanceof Error ? error.message : error);
|
|
process.exit(1);
|
|
});
|