Files
linki/instrumentation.ts
2026-08-01 14:01:17 +02:00

12 lines
382 B
TypeScript

export async function register() {
// Only run on the Node.js server runtime, not in the browser/edge
if (process.env.NEXT_RUNTIME === "nodejs") {
try {
const { ensureGlobalRunnerStarted } = await import("@/lib/linkedin/runner");
ensureGlobalRunnerStarted();
} catch (err) {
console.error("[instrumentation] Failed to start runner:", err);
}
}
}