mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-02-19 15:25:13 -05:00
12 lines
369 B
TypeScript
12 lines
369 B
TypeScript
import { definePlugin } from "nitro";
|
|
import { bootstrapApplication } from "../modules/lifecycle/bootstrap";
|
|
import { logger } from "../utils/logger";
|
|
import { toMessage } from "../utils/errors";
|
|
|
|
export default definePlugin(async () => {
|
|
await bootstrapApplication().catch((err) => {
|
|
logger.error(`Bootstrap failed: ${toMessage(err)}`);
|
|
process.exit(1);
|
|
});
|
|
});
|