Files
blog/write-server/src/instrumentation.ts
T
2026-06-21 20:42:44 +08:00

9 lines
243 B
TypeScript

export async function register() {
if (process.env.NEXT_RUNTIME === "nodejs") {
const { startBot } = await import("@/lib/bot");
startBot().catch((e) => {
console.error("[instrumentation] bot startup failed:", e);
});
}
}