9 lines
243 B
TypeScript
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);
|
|
});
|
|
}
|
|
}
|