Files
blog/write/src/instrumentation.ts
T

8 lines
243 B
TypeScript
Raw Normal View History

2026-06-02 00:23:04 +08:00
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);
});
}
}